📜  c# 指示器中是否的自动点击器 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:42.790000             🧑  作者: Mango

代码示例1
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);
}
}