C# Web开发中弹出对话框的函数[转载]

public void Alert(string str_Message)
{
ClientScriptManager scriptManager =((Page)System.Web.HttpContext.Current.Handler).ClientScript;
scriptManager.RegisterStartupScript(typeof(string), "", "alert('" + str_Message + "');", true);
}
public void Alert(string str_Message, string redirect)
{
ClientScriptManager scriptManager =((Page)System.Web.HttpContext.Current.Handler).ClientScript;
scriptManager.RegisterStartupScript(typeof(string), "", "alert('" + str_Message + "');self.location='"+redirect+"'", true);
}

上一篇:linux 常用命令-ps(process state)


下一篇:WPF 系统关闭模式