Link to home
Start Free TrialLog in
Avatar of jemigossaye
jemigossaye

asked on

Response.Redirect() from aspx to asp

Hi,

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.
Avatar of aki4u
aki4u

yes, you can...if you pass multiple variables - is the same as if you were passing one variable
deal with multiple variables by adding an ampersand between variables:
Response.Redirect("send_new_broker_email.asp?email_address="+ txtEmailAddress.Text +"&var2="+ txtvar2.text);
Avatar of jemigossaye

ASKER

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.
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.

cheers,
mcg
well thanks,

one more thing what about server.transfer() would I be abel to use that to do the same thing.
ASKER CERTIFIED SOLUTION
Avatar of mcgants
mcgants

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial