TextBox Controls losing their values

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?
 
D

daphish

If you set EnableViewstate to true this should save all the setting of
the textbox when you report to the server.

--dwayne
 

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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top