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 |
determine which Element received an Event
code to calculate the number of days between two dates
Reading which Non-Character Key was pressed
code to images to rollover
How to Add Message and Confirmation Boxes Using JavaScript?
how to Auto Scroll the page
program to bring a window to the front
validation code / function to allow only NUmbers in a text box
how to create Expandable and Collapsible Menus
Create a Menu that can be activated while clicking on Right Mouse button
how to pass data between pages using URLs
Create a ViewState Property?