hi,
when iam selecting the value from dropdownlist the fileupload path is going.
i have written the code it is working for password but not working for fileupload control
public void Fileupload()
{
ImagepathFileUpload1.Attributes["value"] = ImagepathFileUpload1.FileName;
FileUpload2.Attributes["value"] = FileUpload2.FileName;
FileUpload3.Attributes["value"] = FileUpload3.FileName;
FileUpload4.Attributes["value"] = FileUpload4.FileName;
}
protected void DdlCountry_SelectedIndexChanged(object sender, EventArgs e)
{
Fileupload();
jb.CountryId = DdlCountry.SelectedValue;
DdlState.DataSource = jb.getstatebycountry();
DdlState.DataTextField = "StateName";
DdlState.DataValueField = "StateId";
DdlState.DataBind();
DdlState.Items.Insert(0, "- - - select - - -");
}
protected void DdlState_SelectedIndexChanged(object sender, EventArgs e)
{
Fileupload();
jb.StateId = DdlState.SelectedValue;
DdlCity.DataSource = jb.getcitybystate();
DdlCity.DataTextField = "Locationname";
DdlCity.DataValueField = "Locationid";
DdlCity.DataBind();
DdlCity.Items.Insert(0, "- - - select - - -");
}