Response.Redirect() from aspx to asp

Posted on 2006-05-17
Medium Priority
Last Modified: 2008-01-09

can i use the Response.Redirect() to redirect the page to classic ASP page form ASP.NET. and pass in the parameters from the aspx to ASP
like this
Response.Redirect("send_new_broker_email.asp?email_address="+ txtEmailAddress.Text);
if so what if i want to pass multiple variables.
Question by:jemigossaye
  • 3
  • 2
LVL 10

Expert Comment

ID: 16698852
yes, you can...if you pass multiple variables - is the same as if you were passing one variable

Expert Comment

ID: 16699360
deal with multiple variables by adding an ampersand between variables:
Response.Redirect("send_new_broker_email.asp?email_address="+ txtEmailAddress.Text +"&var2="+ txtvar2.text);

Author Comment

ID: 16700156
hi, after when I redirect to the CLASSIC ASP page from ASP.NET I n getting this error:

This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.asp' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

Requested URL: /BrokerInfo/send_new_broker_email.asp
 ps it is spelled correctly.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 16700347
are you running IIS6 under windows server 2003? If so, run inetmgr to open IIS and check that Active Server Pages are allowed  the 'Web Service Extensions'

otherwise, check that it's asp pages, not aspx pages you're trying to run.


Author Comment

ID: 16702071
well thanks,

one more thing what about server.transfer() would I be abel to use that to do the same thing.

Accepted Solution

mcgants earned 2000 total points
ID: 16702163
the difference between server.transfer and response.redirect is that response.redirect simply sends a message to the browser telling it to go to another page. Server.transfer, however, changes the focus on the server and transfers the request. This means the original URL sits in the browser address bar, and by setting the preserveForm atttribute to true, you can actually use values from elements on the previous page!
The down side to server.transfer is you can only redirect to pages on the same server. Also, the preserveForm feature isn't without it's bugs!

I'm off for the night now, so hope this helps,

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question