on dropdownlist selected indexchange event the fiel upload data is lost
-
hi iam using asp.net with c# in my form there is file upload control to browse and get the image and there is dropdownlist control from which i have to select the items , on selecting the items from dropdownlist onselectedindex changed event ,the file upload control is becomming empty how to handle this situation can you give example which helps me
-
hi iam using asp.net with c# in my form there is file upload control to browse and get the image and there is dropdownlist control from which i have to select the items , on selecting the items from dropdownlist onselectedindex changed event ,the file upload control is becomming empty how to handle this situation can you give example which helps me
Do you set the value of the dropdownlist in (for example) the OnLoad event?
if (!IsPostback)
{
// Set dropdown values
}.: I love it when a plan comes together :. http://www.zonderpunt.nl
-
Do you set the value of the dropdownlist in (for example) the OnLoad event?
if (!IsPostback)
{
// Set dropdown values
}.: I love it when a plan comes together :. http://www.zonderpunt.nl
You can place the dropdown list and the control you want to change onselectedindexchanged in update panel control, but place the upload control outside the update panel. it will surely work for you.
-
You can place the dropdown list and the control you want to change onselectedindexchanged in update panel control, but place the upload control outside the update panel. it will surely work for you.
thanks for the code project team ..... this logic helps me
-
hi iam using asp.net with c# in my form there is file upload control to browse and get the image and there is dropdownlist control from which i have to select the items , on selecting the items from dropdownlist onselectedindex changed event ,the file upload control is becomming empty how to handle this situation can you give example which helps me
selected indexchange event fires twice when selection changes i.e one event for deselecting the previous item and other for selecting the new item. you may be refreshing the fileupload control in selected index change event,if so,make sure file upload path is empty before refreshing.