newbee问题:如何调用第二个aspx [英] newbee question: How to call a second aspx

查看:86
本文介绍了newbee问题:如何调用第二个aspx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在aspx中创建了一个页面,点击一个按钮后,一个新的页面

应该打开。

这怎么可能?

我试着像在vb.NET中一样打开一个新表单,但它并没有
工作。


rg,

Eric

I have created a page in aspx and after a click on a button, a new page
should open.
How is this possible?
I tried it doing it like in vb.NET with opening a new form, but it doesn''t
work.

rg,
Eric

推荐答案

你可能想使用Response.Redirect或Server.Transfer。


Response.Redirect(NextPageURL)实际上会回复浏览器,

并告诉它请求NextPageURL。 Server.Transfer将在服务器上重定向到页面 - 浏览器地址栏中的URL将保留为原始页面的

,如果没有无所谓,它是最有效的。


或者你的意思是在新的浏览器窗口中打开(以上解决方案将通常会改变页面中的
现有的浏览器窗口)


HTH,

Pete Beech


" EMW" <所以***** @ MicroSoft.Com>在留言中写道

news:40 ********************** @ dreader2.news.tiscal i.nl ...
You probably want to use Response.Redirect or Server.Transfer.

Response.Redirect(NextPageURL) will actually respond back to the browser,
and tell it to request the NextPageURL. Server.Transfer will, on the server,
redirect to the page - the URL in the browsers address bar will be left as
the original page, and if this doesn''t matter, its the most efficient.

Or do you mean open up in a new browser window (the above solutions will
normally change the page in the existing browser window)

HTH,
Pete Beech

"EMW" <So*****@MicroSoft.Com> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
我在aspx中创建了一个页面,点击一个按钮后,应该打开一个新页面。
这怎么可能?
我试过这样做在vb.NET中打开一个新表单,但它没有工作。

rg,
Eric
I have created a page in aspx and after a click on a button, a new page
should open.
How is this possible?
I tried it doing it like in vb.NET with opening a new form, but it doesn''t
work.

rg,
Eric



你可能想要使用Response.Redirect或Server.Transfer。


Response.Redirect(NextPageURL)实际上会回应浏览器,

并告诉它请求NextPageURL。 Server.Transfer将在服务器上重定向到页面 - 浏览器地址栏中的URL将保留为原始页面的

,如果没有无所谓,它是最有效的。


或者你的意思是在新的浏览器窗口中打开(以上解决方案将通常会改变页面中的
现有的浏览器窗口)


HTH,

Pete Beech


" EMW" <所以***** @ MicroSoft.Com>在留言中写道

news:40 ********************** @ dreader2.news.tiscal i.nl ...
You probably want to use Response.Redirect or Server.Transfer.

Response.Redirect(NextPageURL) will actually respond back to the browser,
and tell it to request the NextPageURL. Server.Transfer will, on the server,
redirect to the page - the URL in the browsers address bar will be left as
the original page, and if this doesn''t matter, its the most efficient.

Or do you mean open up in a new browser window (the above solutions will
normally change the page in the existing browser window)

HTH,
Pete Beech

"EMW" <So*****@MicroSoft.Com> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
我在aspx中创建了一个页面,点击一个按钮后,应该打开一个新页面。
这怎么可能?
我试过这样做在vb.NET中打开一个新表单,但它没有工作。

rg,
Eric
I have created a page in aspx and after a click on a button, a new page
should open.
How is this possible?
I tried it doing it like in vb.NET with opening a new form, but it doesn''t
work.

rg,
Eric



BTW,你是来自微软还是只是欺骗他们的电子邮件地址?


" EMW" <所以***** @ MicroSoft.Com>在留言中写道

news:40 ********************** @ dreader2.news.tiscal i.nl ...
BTW, are you from Microsoft or just spoofing their email address?

"EMW" <So*****@MicroSoft.Com> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
我在aspx中创建了一个页面,点击一个按钮后,应该打开一个新页面。
这怎么可能?
我试过这样做在vb.NET中打开一个新表单,但它没有工作。

rg,
Eric
I have created a page in aspx and after a click on a button, a new page
should open.
How is this possible?
I tried it doing it like in vb.NET with opening a new form, but it doesn''t
work.

rg,
Eric






这篇关于newbee问题:如何调用第二个aspx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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