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 |
how to pass data between pages using Cookies
communication between main window and new windows
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space:
create Drop-Down Navigation Menus
how to convert between arrays and strings
code to calculate the number of days between two dates
How to Add Message and Confirmation Boxes Using JavaScript?
program that will accept any name and will be stored in an array
write a code to generate pseudorandom numbes
write a code that user can choose/alter Body Text Size
sample code to auto focusing the first field in a form
how to create a Custom Scrollbar