实际上,我需要显示Success Message
并单击后OK
,应该Redirect
我到另一个Page
。
到目前为止,一切正常。但放置后UpdatePanel
,Alert
没有显示。
我的代码:
ClientScript.RegisterStartupScript(typeof(Page), "Create Time Table", "<script language='JavaScript'>alert('Time Table Created Successfully.'); window.location.href = 'create.aspx';</script>");
我试过:
ClientScript.RegisterStartupScript(typeof(Page), "Create Time Table", "<script language='JavaScript'>alert('Time Table Created Successfully.'); window.location.href = 'create.aspx';</script>",true);
ClientScript.RegisterStartupScript(typeof(Page), "Create Time Table", "<script language='JavaScript'>alert('Time Table Created Successfully.'); window.location.href = 'create.aspx';</script>",false);
但是,这些都不起作用:(