问个很菜的问题!!! 现在在aa.aspx上有个按钮btn,怎么实现单击btn转到bb.aspx? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 btn如果只是为了转移,不要用服务器控件,直接一个<input type=button value=我转onnclick="location.replace('b.aspx');"> Response.Redirect("bb.aspx");Page.RegisterStartupScript("check", "<script>window.open('bb.aspx')</script>");this.btn.Attributes.Add("onclick", "window.open('bb.aspx')"); 如果是服务器材空间的话就是<input type=button value=控件名 onnclick="location.replace('bb.aspx');">否则Response.Redirect("bb.aspx");最后建议你先自己多看看书,在网上查查学习资料 自己多做练习 多琢磨 你想怎么转呢?改变当前页,还是打开新窗口?改变当前页:设置location属性打开新窗口:window.open http://218.27.204.17/aspnet/a_user.aspx 广告!client:location.hrefserver:Response.Redirect() 求救! iTextSharp按页面原样导出PDF文件 在ASP.NET页面中用代码打开桌面上的软件 Response与Request区别 asp.net 如何 include 其他文件 DataReader.read()的问题 如何处理DataList模版中的DropDownList控件的事件? 在ASP.NET中如何动态改变图片? 求asp.net的 在线聊天室源码! ASP.NET的并行问题,有经验的朋友快来帮忙啊! 请教一下ASP.net 的问题 类似IDE的功能怎么做啊? 高手请来指点页面传值的问题
Page.RegisterStartupScript("check", "<script>window.open('bb.aspx')</script>");
this.btn.Attributes.Add("onclick", "window.open('bb.aspx')");
<input type=button value=控件名 onnclick="location.replace('bb.aspx');">
否则
Response.Redirect("bb.aspx");最后建议你先自己多看看书,在网上查查学习资料 自己多做练习 多琢磨
打开新窗口:window.open
client:location.href
server:Response.Redirect()