Submit erases textbox content....

G

george d lake

Hi,
I have a textbox and a listbox in a User Control
When I click on a line in the listbox I populate the text box. This
works perfect.
No, on the page that has the UC in it, I also have a submit button. When
I press submit, the textbox gets cleared, but if I enter something again and
re submit I does not erase it.

Any ideas?
 
D

Dan Normington

Make sure that you are allowing viewstate for the user
control and the page. Also, check your html of the page
that contains the user control. Make sure it is inside of
the <form></form> tags. These are just wild guesses.

HTH
 

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
473,773
Messages
2,569,594
Members
45,122
Latest member
VinayKumarNevatia_
Top