I am trying to create an Active Server page and am unable to get the Response.Redirect to work the way I want it to. I am having the user enter...

How It Works

Get an answer in three easy steps. Here's how it works...

Ask Your Question

1. Ask Your Question

Enter your programming question at the top of this page and click Get An Answer.

Pick Your Priority

2. Pick Your Priority

Tell us how quickly you want your programming question answered.

Get An Answer

3. Get An Answer

Connect with your programmer via online chat or telephone call.

Answer

Customer
I am trying to create an Active Server page and am unable to get the Response.Redirect to work the way I want it to. I am having the user enter there UserName and Password and it should then direct them to the appropriate URL. The password part is working fine but they all go to the same URL. I have created a field in the .MDB database titled URL and it is a Hyperlink with the URL already there. I want the user to enter there UserName and password and if it matches then take them to the URL in that field. I am using this line of code and it pulls up an error of Invalid Character by the Code: Response.Redirect("../reports/?myvar="& _Server.urlencode("objURL")) This is may variable: set objURL = rstblOffices(2) Please Help. Thanks, Ben Smith
Last updated
derek
Programmer
Why do you have an underscore after the &? Try the following: Response.Redirect("../reports/?myvar=" & Server.urlencode("objURL")) Derek Backus ASP Help http://www.asphelp.com
Last updated
Matthew Pomar
Customer Support
It's are to tell how your code looks on your page, but the way you describe it here should produce an error.

It appears your don't have a return after your _ (VBScript Code-Continuation Character). As well, I'd put a space infront of it as well.

It should look like this:

Response.Redirect("../reports/?myvar=" & _
Server.urlencode("objURL"))


Hope this fixes it.

Regards,
Matthew Pomar
m**r@aspsites.com
Last updated
pl
Programmer
test
Posted

quoteTestimonialsquote

About ExpertHelp

ExpertHelp is changing the way you connect with service professionals.

Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.

ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!

More Programming Questions...

Ask Your Programming Question & Get An Answer Now!