Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
}
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #autoclicker #indicator
ADD COMMENT
Topic
Name
4+4 =