473,288 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,288 software developers and data experts.

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 1776
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
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
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
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
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
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
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
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
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
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 =...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.