当前位置: 代码迷 >> ASP.NET >> 页面调转的有关问题
  详细解决方案

页面调转的有关问题

热度:913   发布时间:2013-02-26 00:00:00.0
页面调转的问题!
在iframe中打开了一个页面a,a页面上我放了一个按钮
<asp:Button   ID= "Button1 "   runat= "server "   Text= "提   交 "   />

我现在想在点击这个按钮时在iframe中打开b页面该怎么写????

------解决方案--------------------------------------------------------
a是iframe中的页面?不用button 用 <input type= "button " value= "click " onclick= "javascript:window.location.href= 'b.aspx ' ">
------解决方案--------------------------------------------------------
按钮事件里这样写response.redirect( "xxx.aspx ")
------解决方案--------------------------------------------------------
讲得都有道理... <asp:Button 生成的 html 是 <input type= "submit " 默认提交.除非你做脚本处理onclick= "return false " 就不提交
------解决方案--------------------------------------------------------
后台用
Button1.Attributes.Add( "onclick " , "window.location.href= 'b.aspx ' "),
  相关解决方案