message box
Hi,
I have added an attribute to a button in page load as,
this.btnHome.Attributes.Add("onclick","if(!confirm ('Are you sure to delete this Event?')) return false;");
and this shows the message box properly with 2 options "Ok" and "Cancel". so i added a condition inside the button's click event as,
if(!confirm('Are you sure to delete this Event?'))
{
}
else
{
}
but this shows 2 syntax errors as,
(1) The name confirn doesnot exist in the class or namespace ....
(2) Too many characters in the character literal.
how can i return whether user pressed "Ok" or "Cancel"??
nalla
|