新的“窗户”在.NET中 [英] new "windows" in .NET

查看:86
本文介绍了新的“窗户”在.NET中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有任何想法如何在.NET中打开一个新的Web浏览器

窗口?


我在VB中使用ASP.NET作为背后的代码,在

后,一些(服务器端)验证码可能需要打开一个

的第二个浏览器窗口。


感谢任何帮助。


干杯

Stu。

Does anyone have any ideas how to open a new web browser
window in .NET?

I''m using ASP.NET with VB as the code behind, and after
some (server side) validation code may need to open a
second browser window.

Any help gratefully received.

Cheers
Stu.

推荐答案

你就像在HTML中一样:用一个带有

windows.open(...)命令的客户端脚本。


ASP.Net并没有为您提供任何新的东西。

-

要回复,请删除l。在@符号之前。


Arnaud Weil - MCT,MCSD.Net,MCAD.Net
You do just like you would in HTML: put a client-side script with a
windows.open(...) command.

ASP.Net doesn''t provide you with anything new on that side.
--
To reply, remove a "l" before the @ sign.

Arnaud Weil - MCT, MCSD.Net, MCAD.Net


验证后的代码隐藏写下

javascript来打开文字控件的窗口。


litScript.Text ="< script

type ="" text / javascript""> window.open(''somepage.aspx'');

< / script>"
In your codebehind after the validation write the
javascript to open the window to a literal control.

litScript.Text = "<script
type=""text/javascript"">window.open(''somepage.aspx'');
</script>"
-----原始消息-----
有没有人有任何想法如何在.NET中打开一个新的Web浏览器窗口?

我'使用ASP.NET和VB作为后面的代码,并且在某些(服务器端)验证代码之后可能需要打开第二个浏览器窗口。

感激不尽收到了。

干杯
Stu。

-----Original Message-----
Does anyone have any ideas how to open a new web browser
window in .NET?

I''m using ASP.NET with VB as the code behind, and after
some (server side) validation code may need to open a
second browser window.

Any help gratefully received.

Cheers
Stu.

.








感谢您的回复。


我已经知道了windows.open()命令,但我不知道'b

知道我可以从我的VB代码中调用它的方式。


有没有办法从VB

服务器端代码调用java脚本?


干杯

Stu。

Hi,

Thanks for the reply.

I already knew of the windows.open() command, but I don''t
know of a way that I can invoke this from my VB code.

Is there a way to invoke the java script from the VB
server side code?

Cheers
Stu.
-----原帖-----
你就像你在HTML中一样:用awindows.open(...)命令放置一个客户端
脚本。

ASP.Net没有为你提供任何新的东西那个
方.--
要回复,请删除l。在@符号之前。

Arnaud Weil - MCT,MCSD.Net,MCAD.Net

-----Original Message-----
You do just like you would in HTML: put a client-side script with awindows.open(...) command.

ASP.Net doesn''t provide you with anything new on that side.--
To reply, remove a "l" before the @ sign.

Arnaud Weil - MCT, MCSD.Net, MCAD.Net
.



这篇关于新的“窗户”在.NET中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆