社区
C#
帖子详情
用Response.Redirect弹出一个新的页面
zfh198601
2008-04-12 03:08:17
Response.Redirect("pro_search1.aspx");
...全文
526
11
打赏
收藏
用Response.Redirect弹出一个新的页面
Response.Redirect("pro_search1.aspx");
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
11 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
wlm1314
2008-04-24
打赏
举报
回复
mark
zfh198601
2008-04-21
打赏
举报
回复
[Quote=引用 2 楼 CathySun118 的回复:]
Response.Write(" <script>window.open('链接') </script>")
[/Quote]
用Response.Write是可以实现,但是调用后在当前页面上会写入这条语句.
因为Response.Write是将数据输入到客户端
tinalucky
2008-04-14
打赏
举报
回复
Response.Write(" <script>window.open('链接','_blank') </script>")
CathySun118
2008-04-14
打赏
举报
回复
Response.Write("<script>window.open('链接')</script>")
深圳小武
2008-04-14
打赏
举报
回复
int id = 3;
string str=" <script> window.open('Default2.aspx?id="+id+"','_blank') </script> ";
Response.Write(str);
如果有多个参数的话就是这样
int id = 3;
string name = "testname";
string s=" <script> window.open('Default2.aspx?id="+id+"&name="+name+"','_blank') </script> ";
Response.Write(s);
参数接收
string a = Request.QueryString["id"];
string b = Request.QueryString["name"];
zfh198601
2008-04-14
打赏
举报
回复
Response.Write(" <script>window.open('链接','_blank') </script>")
我跳转的是带参数的?????
jinjazz
2008-04-14
打赏
举报
回复
上边有3种方法可以用
jinjazz
2008-04-14
打赏
举报
回复
参考blog
http://blog.csdn.net/jinjazz/archive/2007/11/16/1888066.aspx
http://blog.csdn.net/net_lover/archive/2007/09/24/1799094.aspx
zccmy22
2008-04-14
打赏
举报
回复
[Quote=引用 3 楼 tinalucky 的回复:]
Response.Write(" <script>window.open('链接','_blank') </script>")
[/Quote]
TNT_1st_excellence
2008-04-14
打赏
举报
回复
[Quote=引用楼主 zfh198601 的帖子:]
Response.Redirect("pro_search1.aspx");
[/Quote]
什么问题?
wt3056
2008-04-12
打赏
举报
回复
什么问题?
三种方法让
Response.Redirect
在
新
窗口打开
通过设置form的target属性同样可以让Response.Rederect所指向的url在
新
的窗口打开,下面为大家介绍三种具体的实现方法
asp.net窗体的打开和关闭(输出js)
//
弹出
一个
新
窗体 Response.Write(“[removed]window.open(\”WebMain.aspx\”)[removed]”) //
弹出
一个
只有确定按钮的提示框 Response.Write(“[removed]alert(\”用户名或密码错误\”);[removed]”); //...
解决
Response.Redirect
_blank
弹出
新
页面
看了网上很多说用Response.Write( " <script> window.open( 'userInformation.aspx '); </script> "); 我觉得window.open, 可能会被栏截. 这里我想了
一个
办法, 不知道怎么样, 有意见的反馈一下, 谢谢. ...
Response.Redirect
打开
新
窗口的两种方法
一般情况下,
Response.Redirect
方法是在服务器端进行转向,因此,除非使用 Response.Write("window.location=http://dotnet.aspx.cc;") 方法外,是不能在
新
窗口打开所指定的 URL 地址的。但是,如果仔细分析一下,...
如何在
Response.Redirect
前
弹出
alert对话框
知识点:window.location 对象用于获得当前
页面
的地址 (URL),并把浏览器重定向到
新
的
页面
。自己处于javaweb入门阶段用javaweb写登录注册时遇到这个问题:怎么实现登录时密码输入错误调用alert提示密码错误并且不跳转...
C#
110,502
社区成员
642,567
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章