Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing textbox value back to original value when closing popup

Status
Not open for further replies.

sbushway

Programmer
Jan 27, 2003
58
US
Hi,
On my webform, I have 4 textboxes and a submit button. If the user changes the value in the first textbox then submits the form, a popup window appears that has an "Are you sure ..." message, a Yes button, and a No button. If the user presses No, I want to close the popup and return the value of the first textbox back to its original value (before the user changed it).

I can get the popup to close; I just can't figure out how to get the first textbox to have its original value.

Any ideas?

Thanks in advance,
Suzanne
 
some code would be helpful. the popup is it a messagebox or a second form. how do you open it. if it is a form then add a property to it as a dialogresult type. change the property when one of the buttons is pressed. You can even ask for that property when the form is closed (promisse).

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
It's a webform. It's probably a javascript issue. You will get more help asking this in the ASP.Net forum.
 
oops, missed that one.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top