在类中写的父页面跳转方法不起作用,调用时页面不跳转!求解! 父页面转向类redirect 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有加 Updatepanale 吗? 好像和 这种注册写法有冲突 try this:http://www.cnblogs.com/insus/archive/2008/11/26/1341703.html public void ZhuanXiangZhuYe() { System.Web.HttpContext.Current.Response.Write("<script>alert('登陆状态失效,请到首页重新登陆!')</script>"); System.Web.HttpContext.Current.Response.Write(“<script>this.top.location.href='index.aspx'</script>”); }这样写简单些,还有,在跳转之前,你得判断下 this.top对象是不是null,有可能是this.top对象没取到,没取到就再加个else ,用window.location.href='xxx.aspx'吧。 MVC里面的任一View/Controller中传递参数问题 怎么触发前台的asp代码 求网页数据抓取的方法和思路 Textbox 字符转换问题 asp.net2.0中插入图片到mysql (急啊!)一个ajax运行到后台取session值的问题?? 请求一条删除记录的SQL语句! 为何a没有数据读出来.... 关于ASP.net的若干问题?(我是初学者.) asp+sql2000怎么判断连接已经成功? js中获取html中select下的innerHTML 问下VS开发工具有这个功能吗?
http://www.cnblogs.com/insus/archive/2008/11/26/1341703.html
System.Web.HttpContext.Current.Response.Write("<script>alert('登陆状态失效,请到首页重新登陆!')</script>");
System.Web.HttpContext.Current.Response.Write(“<script>this.top.location.href='index.aspx'</script>”);
}这样写简单些,还有,在跳转之前,你得判断下 this.top对象是不是null,有可能是this.top对象没取到,没取到就再加个else ,用window.location.href='xxx.aspx'吧。