dropdown - javascript - to server - postback

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created two dropdownlists, one of them is filled up through javascript
because i did not want to create to much datatransfer since the content of
that list depends on what is selected in the first dropdown...

By javascript I can retrieve the selected value and put it in a hidden
field, so that ASP.NET recognizes the value, but after clicking the submit,
the value is lost...

somebody knows what can be done about it...
 
You need tomake sure that the Hidden filed has a runat="server" attribute.
If you do this then I believe the value will not be lost . It should
maintain its value during postbacks assuming you have ViewState on.
 
it didn't work with a hidden field
but I created a textbox with a css style "display:none"
effect is much the same...

tx anyway...
 
Back
Top