Message box control

B

Brian

Kind of nice to have it wrapped in a nice little dll.

We normally want more control over which button/control gets the prompt not
just on submit so we use a webHelper object to add the code:

public static void AddConfirmMessageBox(System.Web.UI.WebControls.WebControl
myControl, string Message)
{
myControl.Attributes.Add("onClick", "return confirm('" + Message + "');");
}

Works for us.
 

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,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top