Hi,
I’m new to javascript and writinig a function for an ASP.NET C# webform.
I have a delete command button on the form.
When the user clicks on the form following logic occurs:
if labelcontrol1.value has a value then
var result = confirm(“Are you sure you want to delete”);
if(result)
{
fire the C# server side click event code which will delete record.
}
else
{
do nothing.
}
else
alert (Please choose a record.”) “Can’t delete unless a record is chosen.”
end if
sorry, i don’t know the syntax yet of javascript.
the main problem is how to get the server side click event to fire if the Okay button is choosen in the javascript confirmation window?
humbly requesting help.
thanks
haggisns