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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fire a Yes/No MessageBox from DropDownList OnPreRender

Status
Not open for further replies.

Iamthestig

Programmer
Apr 30, 2008
38
GB
Hi,

I'm not sure if this can be done.
I am using ASP.Net 2.0 / VS 2008

I have a page with a dropdownlist of user names. When the list is clicked (or before a user name is changed) I want to display a messagebox reminding the user to Save the current Page. Like: "Have you saved this page?" With Yes No buttons. Then cancel the dropdownlist from changing if they click No.
I can do this with a button, can it be done with a dropdownlist?

Many thanks.
 
yes, you need to preform this on the client using js. for more assistance with js use forum216. There are alot of web devs who swear by jquery. You may want to look into this as well.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top