I am trying to implement a javascript
confirm popup that returns a value from the code behind. When the user selects the ok button on the confirm popup, certain code will execute, and if they select cancel, different code will run.
Is there a way to retrieve the selected value from the code behind?
This is what my code currently looks like:
if (ClientScript.RegisterStartupScript(typeof(Page), "Confirm", "<script type='text/javascript'>return Confirm('Do you Want to Delete');</script>"))
{
db.Deletedevicedate();
clear();
}
else
{
clear();
}