读书人

页面调转的有关问题

发布时间: 2012-01-01 23:10:55 作者: rapoo

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

读书人网 >asp.net

热点推荐