日期:2014-05-19  浏览次数:20382 次

页面调转的问题!
在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 ' "),