Click here to Skip to main content
15,881,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have three update panels. In the first update panel I have a country comboBox, Hiddenfield in second and City Combobox in third.

In the country combo client selected indexchnaged event I have set the country value in the hiddenfield using Javascript. On server side I didnot get the correct value .ie the value is not updated.
Posted
Comments
Prasad J 1-Aug-12 1:20am    
Try to place the Hidden field in the same updatepannel where the Country comboBox is placed.
I.explore.code 1-Aug-12 17:53pm    
if you can add some code may be the diagnosis would be quicker! Having said that, have you set the "AutoPostBack" property of the combo box to true in your mark-up? by default DropdownLists don't post back, so just make sure you have that set.

1 solution

Keep your HiddenField inside appropriate update panel. This problem is caused generally, because using update panel you are updating only a particular area not entire page. If your HiddenField is coming under that area the value of HiddenField will be updated, otherwise it will not be updated.


--Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900