dropdown - javascript - to server - postback

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...
 
G

Guest

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.
 
G

Guest

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top