62,025
社区成员
发帖
与我相关
我的任务
分享
protected void Page_Load(object sender, EventArgs e)
{
if(Page.PreviousPage==null)
{
//这里相当于要写winform的messagebox.show("您没有从原页面进入,现在自动转入原页面")
Server.Transfer("training.aspx");
}
}
Page.ClientScript.RegisterStartupScript(this.GetType(), "startup", "alert('您没有从原页面进入,现在自动转入原页面')");
Page.ClientScript.RegisterStartupScript(GetType(), "", "alert('您没有从原页面进入,现在自动转入原页面')", true);