小问题:Response.Redirect如何跳出框架? Response.Write("<script language=javascript>window.open('index.aspx','_parent')</script>"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以在清空Session操作后打出一段前端代码Page.RegisterStartupScript("","<script language=javascript>Top.Document.location='首页地址'</script>"); Response.Write("<script>window.parent.opener=null;window.top.close();</script>")Response.Write("<script>window.open('index.aspx','');</script>") Response.Write("<script language = javascript>window.location=index.aspx'</script>"); 哦,不好意思:拉了个标点:Response.Write("<script language = javascript>window.location='index.aspx'</script>"); 晕,各位,用Response.Redirect可以吗? 老兄,效果是一样的。Response.redirect和window.parent.location.href=""效果是一样的。 用Response.Redirect不可以的,用下面的代码,没有问题的。Response.Write("<script language=javascript>window.open('index.aspx','_parent')</script>"); Response.Redirect只能转到当前的页面。 Response对象是对本页面的response,不能让父窗口转到其他页面的。 谢谢大家,Response.Redirect看来是不行的,哎结贴 No persister for: test.model.Person .net变量如何给控件赋值 asp.net 无组件快速上传大文件 asp.net怎么获取正则表达式,跪求. 刚开始学习.net 2.0的缓存机制,有些问题请教 一个关于OleDB数据源的数据存取问题? 有关SqlServer的问题 永远爱与恨的treeview WebService 中能否转到另外一个网站? 编译器错误信息,DataGrid分页时遇到,求救! 关于连接串的问题,紧急求救! 求教!象我这样的水平毕业论文应该怎么写呀!
Page.RegisterStartupScript("","<script language=javascript>Top.Document.location='首页地址'</script>");
Response.Write("<script language = javascript>window.location=index.aspx'</script>");
Response.redirect和window.parent.location.href=""效果是一样的。