Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RegisterHiddenField lost the value after the postback

Status
Not open for further replies.

dieyoudie

Programmer
Aug 11, 2005
3
CA
I register the hidden field when the page first load, but when the page is postback by some control, the value of that hidden field turn to null.
 
I think - and I'm new to ASP and don't have my books handy - so test this - that if you programmatically create a field at run time (which is what I remember registering does), you have to create it again each time the page is loaded.

If the field existed in the aspx file, I don't believe you would have to do that.

I haven't finished my testing on that feature, it's still on my "to do" list.

David Wendelken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top