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 |
create Drop-Down Navigation Menus
code to positioning of window in certain dimensions
determine which Element received an Event
how to get the User's Time of Day
sample code to auto focusing the first field in a form
code to get the coordinates of a Click Event
Create a ViewState Property?
function to combine two or more arrays
how to Scroll a DIV content
code to detect availability of cookies
Create a Menu that can be activated while clicking on Right Mouse button
how to transform XML Data into HTML