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 + "'); ");