我在我的母版页中使用SweetAlert并使用以下命令从客户端页面调用它
string msg = "Incomplete Profile";
Master.Page.ClientScript.RegisterStartupScript(GetType(), "mufunc", "mufunc('" + msg + "','" + "info" + "');", true);
来自转发器项命令的相同调用无效。这是我的块
if (e.CommandName.Equals("profile"))
{
if (lbl_UserName.Text == "Guest")
{
msg = "Incomplete Profile";
Master.Page.ClientScript.RegisterStartupScript(GetType(), "mufunc", "mufunc('" + msg + "','" + "info" + "');", true);
}
}