473,746 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

newbee question: How to call a second aspx

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
16 2092
You probably want to use Response.Redire ct or Server.Transfer .

Response.Redire ct(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*****@MicroS oft.Com> wrote in message
news:40******** **************@ dreader2.news.t iscali.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
You probably want to use Response.Redire ct or Server.Transfer .

Response.Redire ct(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*****@MicroS oft.Com> wrote in message
news:40******** **************@ dreader2.news.t iscali.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
BTW, are you from Microsoft or just spoofing their email address?

"EMW" <So*****@MicroS oft.Com> wrote in message
news:40******** **************@ dreader2.news.t iscali.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
BTW, are you from Microsoft or just spoofing their email address?

"EMW" <So*****@MicroS oft.Com> wrote in message
news:40******** **************@ dreader2.news.t iscali.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
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.Redire ct(newPage) or Server.Transfer (newPage)
depending on which will suit your needs.

Chris

--------------------
From: "EMW" <So*****@MicroS oft.Com>
Newsgroups: microsoft.publi c.dotnet.framew ork.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************ **********@drea der2.news.tisca li.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.t iscali.nl 41750 212.182.176.131 :4675
X-Complaints-To: ab***@tiscali.n l
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!tr ansit.news.xs4a ll.nl!
195.241.76.212. MISMATCH!tiscal i!transit1.news .tiscali.nl!dre ader2.news.tisc a
li.nl!not-for-mailXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2247 34
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
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.Redire ct(newPage) or Server.Transfer (newPage)
depending on which will suit your needs.

Chris

--------------------
From: "EMW" <So*****@MicroS oft.Com>
Newsgroups: microsoft.publi c.dotnet.framew ork.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************ **********@drea der2.news.tisca li.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.t iscali.nl 41750 212.182.176.131 :4675
X-Complaints-To: ab***@tiscali.n l
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!tr ansit.news.xs4a ll.nl!
195.241.76.212. MISMATCH!tiscal i!transit1.news .tiscali.nl!dre ader2.news.tisc a
li.nl!not-for-mailXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2247 34
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
EMW
it is the email adres from an example.
"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> schreef in bericht
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
BTW, are you from Microsoft or just spoofing their email address?

"EMW" <So*****@MicroS oft.Com> wrote in message
news:40******** **************@ dreader2.news.t iscali.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
EMW
it is the email adres from an example.
"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> schreef in bericht
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
BTW, are you from Microsoft or just spoofing their email address?

"EMW" <So*****@MicroS oft.Com> wrote in message
news:40******** **************@ dreader2.news.t iscali.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
EMW
both actually.
"Pete Beech" <pe*********@ho tmail.nojunk.co m> schreef in bericht
news:uO******** ******@tk2msftn gp13.phx.gbl...
You probably want to use Response.Redire ct or Server.Transfer .

Response.Redire ct(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*****@MicroS oft.Com> wrote in message
news:40******** **************@ dreader2.news.t iscali.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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1219
by: Alexia | last post by:
Hi, I have a real beginner question for u.... what i want to do is close a form when a new one opens. At present when i run my application and arrive at the main form, i press a button to display a second form, but the 1st form is still in the background. I tried to use me.close but this ends the whole application. what am i doin wrong?
4
3600
by: cmc | last post by:
Hi, I 'm new to DB2 (from Oracle background) and have some fundamental question. In Oracle, you create user account "within the database" to let user to logon to the database. There is no tie between the unix account (or other operating system) and the oracle user account - you can logon to the server machine dose not mean you can logon to the database implicitly. However, I notice that there is no account creation in DB2 v8 UDB...
3
238
by: jm | last post by:
I have a question about codebehind. I have an upload namespace, class and all in a codebehind. I currently have it so it works with one of my .aspx pages. I want to use it for another .aspx page. The problem is that they codebehind looks at a specific directory (since it was only being used by one page). I need it to decide which directory to go to based upon which page is using the codebehind page. Can I just reference the private...
9
341
by: EMW | last post by:
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
2
2295
by: Jonny | last post by:
Hiya all Using: ASP.NET Version 1.1 I am learning ASP.NET & would like to know:- How do I add a Open Browser Dialog behind a server button & validate a chosen file as a new e-mail attachment? How do I close an aspx window (client-side)?
2
1419
by: Mel | last post by:
I have a selection box with 3 values. what i need is to pass 3 urls to a function that has a switch statement and based on the selection index goes on one of the tree urls. Question is how do i pass these three urls to the function i already have ? The list size may change and does not necessary have to remain as 3 thanks for lifting a newbee to greater heights
0
1309
by: Martin Arvidsson, Visual Systems AB | last post by:
Hi! I have a couple of newbee questions. I have a .aspx page with a couple of TextBoxes and a submit button. Now... When i press the submitbutton i want the data in the TextBoxes to be saved in my Sql Table.
2
1727
by: Rene | last post by:
Hello to all! I am a newbee to C++, I did a beginners' course, and now I am stuck with a strange problem. I have written the function that is pasted downwards. The peculiar thing is that when I sent the function the value "0", the .lst file is created properly (the vector I am using/saving is made up of structs of one AnsiString (using BCB) called "naam" and one int called "nummer", I guess You'll get what they mean in English ;-))....
0
8975
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8801
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9516
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9219
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6774
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4587
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4840
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2200
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.