How to Add Message and Confirmation Boxes Using JavaScript?
Answer / guest
public void AddConfirmMessage(WebControl ctl, string
message)
{
ctl.Attributes.Add("onclick", "if ( ! confirm( '"
+ message + "' )) return false; ");
}
public void AddPopupMessage(WebControl ctl, string message)
{
ctl.Attributes.Add("onclick", "alert( '" + message
+ "'); ");
}
| Is This Answer Correct ? | 2 Yes | 1 No |
write a function to validate a given date
how to convert between arrays and strings
maximizing the main window
How to block double clicks
code to sorting an array of objects
function to combine two or more arrays
How to test whether two strings are equal or not ?
how to create a Custom Scrollbar
how to prevent an Event from performing its default behavior
code to detect availability of cookies
code to images to rollover
validation code / function to allow only NUmbers in a text box