newbee question: How to call a second aspx

E

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
 
P

Pete Beech

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
 
C

Chris Moore

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

--------------------
 
E

EMW

both actually.


Pete Beech said:
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
 
C

Cor Ligthert

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top