asp.net中提醒登陆且登陆后跳转至当前访问页面

来源:互联网 发布:淘宝企业店铺怎么开 编辑:程序博客网 时间:2024/05/21 22:38

Response.Write("<script>alert('您还没有登录!是否返回登录页面?');window.location.href='.Default.aspx?FromUrl=" + HttpUtility.UrlEncode(Request.Url.AbsoluteUri) + "'</script>");