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_ne w_broker_e mail.asp?e mail_addre ss="+ txtEmailAddress.Text);
if so what if i want to pass multiple variables.
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_ne
if so what if i want to pass multiple variables.
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_ne w_broker_e mail.asp?e mail_addre ss="+ txtEmailAddress.Text +"&var2="+ txtvar2.text);
Response.Redirect("send_ne
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_broke r_email.as p
ps it is spelled correctly.
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_broke
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
otherwise, check that it's asp pages, not aspx pages you're trying to run.
cheers,
mcg
ASKER
well thanks,
one more thing what about server.transfer() would I be abel to use that to do the same thing.
one more thing what about server.transfer() would I be abel to use that to do the same thing.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.