Button Click Event - Problem fetchin Textbox Text

A

AJ

Hi,

I have a textbox and a button on my aspx page. When I click the button, the
updated text (the original value is fetched from the database on form_load
event) is supposed to be passed to a method in the button_click event.

The problem I face is that when the button is clicked, the old textbox value
is passed - in other words, if the old text in the textbox was "Mars", and I
updated it to "Venus" - the click event gets "Mars".

I tried simplyfing the code in the button's click event as follows:

String s = Textbox1.Text;

I still get the old value back.

Any Idea what's going wrong?

Thanks,
AJ
 

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,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top