Hai,
I have a button in view screen of a record. I need to delete the record after getting confirmation from the user.
I can call the javascript function to get cinfirmation by the below script.
btnDelete.Attributes.Add("onclick", "return verify();")
The function is like this.
function verify()
{
if (confirm("Are you sure to delete?")==true)
____return true;
else
___return false;
}
If the function returns true, I need to delete the record.
Kindly suggest.
Regards,
Siva R
I have a button in view screen of a record. I need to delete the record after getting confirmation from the user.
I can call the javascript function to get cinfirmation by the below script.
btnDelete.Attributes.Add("onclick", "return verify();")
The function is like this.
function verify()
{
if (confirm("Are you sure to delete?")==true)
____return true;
else
___return false;
}
If the function returns true, I need to delete the record.
Kindly suggest.
Regards,
Siva R