By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,619 Members | 2,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,619 IT Pros & Developers. It's quick & easy.

newbee question: How to call a second aspx

P: n/a
EMW
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
Nov 18 '05 #1
Share this Question
Share on Google+
16 Replies


P: n/a
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...
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

Nov 18 '05 #2

P: n/a
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...
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

Nov 18 '05 #3

P: n/a
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...
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


Nov 18 '05 #4

P: n/a
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...
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


Nov 18 '05 #5

P: n/a
Do you mean that you want to second page to open in a completely new
browser window? Or just open a page in the same window. If it's the
latter, you can use Response.Redirect(newPage) or Server.Transfer(newPage)
depending on which will suit your needs.

Chris

--------------------
From: "EMW" <So*****@MicroSoft.Com>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: newbee question: How to call a second aspx
Date: Fri, 9 Apr 2004 22:45:01 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Lines: 10
Message-ID: <40**********************@dreader2.news.tiscali.nl >
Organization: Tiscali bv
NNTP-Posting-Date: 09 Apr 2004 22:45:03 CEST
NNTP-Posting-Host: 212.182.176.131
X-Trace: 1081543503 dreader2.news.tiscali.nl 41750 212.182.176.131:4675
X-Complaints-To: ab***@tiscali.nl
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit .news.xs4all.nl!
195.241.76.212.MISMATCH!tiscali!transit1.news.tisc ali.nl!dreader2.news.tisca
li.nl!not-for-mailXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:224734
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

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


Nov 18 '05 #6

P: n/a
Do you mean that you want to second page to open in a completely new
browser window? Or just open a page in the same window. If it's the
latter, you can use Response.Redirect(newPage) or Server.Transfer(newPage)
depending on which will suit your needs.

Chris

--------------------
From: "EMW" <So*****@MicroSoft.Com>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: newbee question: How to call a second aspx
Date: Fri, 9 Apr 2004 22:45:01 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Lines: 10
Message-ID: <40**********************@dreader2.news.tiscali.nl >
Organization: Tiscali bv
NNTP-Posting-Date: 09 Apr 2004 22:45:03 CEST
NNTP-Posting-Host: 212.182.176.131
X-Trace: 1081543503 dreader2.news.tiscali.nl 41750 212.182.176.131:4675
X-Complaints-To: ab***@tiscali.nl
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit .news.xs4all.nl!
195.241.76.212.MISMATCH!tiscali!transit1.news.tisc ali.nl!dreader2.news.tisca
li.nl!not-for-mailXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:224734
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

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


Nov 18 '05 #7

P: n/a
EMW
it is the email adres from an example.
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...
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...
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

Nov 18 '05 #8

P: n/a
EMW
it is the email adres from an example.
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...
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...
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

Nov 18 '05 #9

P: n/a
EMW
both actually.
"Pete Beech" <pe*********@hotmail.nojunk.com> schreef in bericht
news:uO**************@tk2msftngp13.phx.gbl...
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...
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


Nov 18 '05 #10

P: n/a
EMW
both actually.
"Pete Beech" <pe*********@hotmail.nojunk.com> schreef in bericht
news:uO**************@tk2msftngp13.phx.gbl...
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...
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


Nov 18 '05 #11

P: n/a
Could you change it? Some of us highlight MS addresses.

"EMW" <So*****@MicroSoft.Com> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
it is the email adres from an example.


Nov 18 '05 #12

P: n/a
Could you change it? Some of us highlight MS addresses.

"EMW" <So*****@MicroSoft.Com> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
it is the email adres from an example.


Nov 18 '05 #13

P: n/a
Hi Eric,

This is completly different than in windowforms, both is of course VB.net.

You got the right answer from Chris Moore, so I do not repeat it.

Cor
Nov 18 '05 #14

P: n/a
Hi Eric,

This is completly different than in windowforms, both is of course VB.net.

You got the right answer from Chris Moore, so I do not repeat it.

Cor
Nov 18 '05 #15

P: n/a
EMW
done!

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> schreef in bericht
news:eZ**************@TK2MSFTNGP10.phx.gbl...
Could you change it? Some of us highlight MS addresses.

"EMW" <So*****@MicroSoft.Com> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
it is the email adres from an example.

Nov 18 '05 #16

P: n/a
EMW
done!

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> schreef in bericht
news:eZ**************@TK2MSFTNGP10.phx.gbl...
Could you change it? Some of us highlight MS addresses.

"EMW" <So*****@MicroSoft.Com> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
it is the email adres from an example.

Nov 18 '05 #17

This discussion thread is closed

Replies have been disabled for this discussion.