Click here to Skip to main content
13,199,852 members (73,546 online)
Rate this:
Please Sign up or sign in to vote.

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 31-Jul-12 19:14pm
Prasad J 1-Aug-12 1:20am
Try to place the Hidden field in the same updatepannel where the Country comboBox is placed.
gladiatron 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171020.1 | Last Updated 2 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100