Answers for "autoclicker for yes/no in c# indicator"

C#
0

autoclicker for yes/no in c# indicator

public void OnConfirm(object sender, EventArgs e)
{
string confirmValue = Request.Form["confirm_value"];
if (confirmValue == "Yes")
{
    //Your logic for OK button
            ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('you clicked yes'); OpenConfirmDialog();", true);
}
else
{
    //Your logic for cancel button
            ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('you clicked no'); OpenConfirmDialog();", true);
}
}
Posted by: Guest on February-13-2021

C# Answers by Framework

Browse Popular Code Answers by Language