Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 31-Jul-12 20:14pm
Comments
Prasad J at 1-Aug-12 1:20am
   
Try to place the Hidden field in the same updatepannel where the Country comboBox is placed.
gladiatron at 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
good
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.
 

--Amit
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 329
2 CPallini 270
3 Afzaal Ahmad Zeeshan 204
4 DamithSL 194
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 2 Aug 2012
Copyright © CodeProject, 1999-2014
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