How to Add Message and Confirmation Boxes Using JavaScript?
Answer Posted / 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 |
Post New Answer View All Answers
code to sorting an array of objects
Create a Menu that can be activated while clicking on Right Mouse button
determine which Element received an Event
how to create a Draggable element
code to get the coordinates of a Click Event
snippet to prevent submission of form when certain/any validations got failed
how to pass data between pages using Frames
how to create a Custom Scrollbar
communication between main window and new windows
program to show a progress bar
How to encode and decode URL strings?
code to set the main window's size
code to positioning of window in certain dimensions
how to transform XML Data into HTML
how to convert between arrays and strings