textbox question

P

ProgramAnalyst

Lets say I have a page that has a Button control and a Table control.
The Table control holds a textbox that gets its text from a DB. Now
when i click the Button control I want whatever text in the TextBox
to be saved to the DB. So it would be like an update.

My problem: When I click on the Button control the text in the TextBox
doesn't get saved...the old text from the DB is loaded because before
the Button_Click event is fired the Page_Load method is called and
that resets the TextBox to the original text from the DB.

How can i over come this? (The example above is simplified so
viewstate wont help).

Thanks.

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 

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

Top