TextBox Controls losing their values

  • Thread starter Thread starter Philip Townsend
  • Start date Start date
P

Philip Townsend

I have a user control that contains a form with several text boxes. The
text boxes get populated from a SQL Server table when the control loads.
When the controls posts back, any values that have changed get passed to
a stored procedure to update the table. The problem is that when the
form is submitted, the text boxes seem to lose their values and contain
nothing but empty strings. I have tested the same code from an .aspx
page and it works, however, when attemting the same thing in a user
control, I get these errors. Any clues?
 
If you set EnableViewstate to true this should save all the setting of
the textbox when you report to the server.

--dwayne
 
Back
Top