473,486 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to redirect from a classic asp page to an asp.net page

I have a classic asp page that has a submit button on it. There are other
buttons on the page that are still connected to functions within the asp
page and the forms action method is attached to make those work. I just need
to redirect to a new asp.net webform that I am creating when the user clicks
on a button on the asp page. I have been away from classic asp for so long
that I can't remember how to do this. Can someone help? Any code examples
would be greatly appreciated.

Thanks in advance!
May 15 '06 #1
4 1779
Afaik Response.Redirect just like asp.net

Otherwise javascript document.location...

"David Hearn" <Da*********@shawinc.com> schreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
I have a classic asp page that has a submit button on it. There are other
buttons on the page that are still connected to functions within the asp
page and the forms action method is attached to make those work. I just
need to redirect to a new asp.net webform that I am creating when the user
clicks on a button on the asp page. I have been away from classic asp for
so long that I can't remember how to do this. Can someone help? Any code
examples would be greatly appreciated.

Thanks in advance!

May 15 '06 #2
"David Hearn" <Da*********@shawinc.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
I have a classic asp page that has a submit button on it. There are other
buttons on the page that are still connected to functions within the asp
page and the forms action method is attached to make those work. I just
need to redirect to a new asp.net webform that I am creating when the user
clicks on a button on the asp page. I have been away from classic asp for
so long that I can't remember how to do this. Can someone help? Any code
examples would be greatly appreciated.


<input type=button value="ASP -> ASPX"
onclick="window.location='MyAspxPage.aspx');">
May 15 '06 #3
Thanks for the replies guys. The window.location approach worked. Having to
knock the rust off of some of my classic asp skills.
"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:OK**************@TK2MSFTNGP03.phx.gbl...
"David Hearn" <Da*********@shawinc.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
I have a classic asp page that has a submit button on it. There are other
buttons on the page that are still connected to functions within the asp
page and the forms action method is attached to make those work. I just
need to redirect to a new asp.net webform that I am creating when the user
clicks on a button on the asp page. I have been away from classic asp for
so long that I can't remember how to do this. Can someone help? Any code
examples would be greatly appreciated.


<input type=button value="ASP -> ASPX"
onclick="window.location='MyAspxPage.aspx');">

May 15 '06 #4
"David Hearn" <Da*********@shawinc.com> wrote in message
news:u5**************@TK2MSFTNGP04.phx.gbl...
Thanks for the replies guys. The window.location approach worked. Having
to knock the rust off of some of my classic asp skills.


The window.location solution would work just as well in ASP.NET...
May 15 '06 #5

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

Similar topics

5
2173
by: Steve Lutz | last post by:
Hello, I have a page that creates a class, and then on certain conditions, redirects user to another page. The class has a Class_Terminate() function that saves itself to a database. The class...
5
14167
by: Hugh Welford | last post by:
Hi, is it possible to open a page in a new window with response.redirect, and if so, what is the syntax Thanks Hugh
1
1885
by: Simon Prince | last post by:
Hi I have an classic ASP page that contains nothing else but the following code... <%@ Language=VBScript %> <% Response.clear Response.redirect("/Intranet") %>
15
15381
by: Drebin | last post by:
I am retrofitting a central login application and want to be able to read the Request.ServerVariables so that when they have logged on, I can send them back to wherever they were trying to go.. ...
4
5865
by: Vi | last post by:
Hi, I have an <asp:Button> control on a page. When it is clicked, I run a db stored procedure and then I want to go to the next page by executing a Response.Redirect("NextPage.aspx?id=" + myID)....
9
2179
by: KenLee | last post by:
I made an application which includes classic asp page and asp.net page. when I tried to redirect from classic asp page to asp.net 2.0 page, it works under my local IIS directory. ex) <a...
3
1273
by: Toty Santana | last post by:
I've a classic ASP page and i need to Redirect from that page to an ASP.NET page then get back to the classic ASP page (all without user intervention). I can't use Server.Excute because it won't...
3
8149
by: alasdair.stirling | last post by:
Dear All, I am new to ASP/ASP.Net and am trying to workout the exact meaning of some old ASP Classic code. Can anyone please explain the meaning of the following line of code: ...
1
6416
by: Andrew Poulos | last post by:
I have a simple page with a form in it that gets posted to the following ASP <%@ language="javascript" %> <% var login_success_page = "../intro.asp"; var login_failed_page =...
0
7100
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,...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7330
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...
0
5434
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
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...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
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...

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.