Scriptmanager警告框

时间:2014-02-05 20:50:29

标签: c#

如何将条件添加到scriptmanager的onxlick on aspx.cs中。

ScriptManager.RegisterClientScriptBlock(
    this, 
    this.GetType(), 
    "alertMessage", 
    "alert('Would you like to be put on the wait list?')", 
    true);

 if(onclick == true)
    {
    //do something}
    }
    else 
    {
    //do something
    }

0 个答案:

没有答案