472,325 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Redirect Help with URL

2
I am having an issue with redirection to a document.

Here is the scenario;

The user fills out some form information and upon submission is taken to a specific page in a pdf file. Everything to this point is working fine, the problem I keep facing is that the browser is changing the URL when it gets sent from the ASP script.

I.E. the url is something like this : library/sop/sop.pdf#page=234

When it gets sent to the browser the equal sign is being replaced by it's hex equivalent (%3D).

So I end up getting this: library/sop/sop.pdf#page%3D234. The file will still open but it will not go to the correct page.

Can anyone shed some light on this? I have tried several different things but none have seemed to work in keeping the browser from changing the =.

Thanks,
Morey
Jun 20 '06 #1
2 1919
sashi
1,754 Expert 1GB
Hi Morey,

emm.. lets assume that the "page" keyword is your querystring.. rite..

so on your asp. script do the following..
<a href=../somewhere/somefile.asp?page=<%=Server.URLEncode("something_w here")%>Something</a>
Jun 20 '06 #2
morey
2
Sahsi, thanks for the reply.

First, I forgot to mention that I am very new to ASP and am learning as I putter along. Also, I am calling the page from a Response.Redirect. If it helps the page number is set to a variable because it will be changing from time to time.

I have been able to get the desired result from just creating a Response.Write link, but I really just want to page to be called up automatically.

Here are a couple of version I have tried that worked, but again the equal sign kept getting changed.

DIM Page
Page = "="+Request.Form("Page")

Response.Redirect "../library/sop.pdf#page"+ Server.URLEncode(Page)


DIM URL
URL = "../library/sop.pdf#page=" + Page
Response.Redirect URL


-Morey-
Jun 20 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Bob Garbados | last post by:
forgive my ignorance, as I'm new to php coming from a ms background... If I create a page named redirect.php and it's only content is: <?php...
3
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. ...
7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I...
2
by: Mark Dengler | last post by:
Is it possible to do a Response.Redirect to multiple URLs? I have tried the following and it simply ignores the first redirect: ...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx...
6
by: Peter Row | last post by:
Hi, I am writing a DLL in VB.NET that implements IHttpHandler.ProcessRequest. This code calls a sub and I need to know if that sub did a response...
8
by: Mantorok | last post by:
Hi all When I start a new thread that tries to call: HttpContext.Current.Response.Redirect() It fails as Current returns null, is there...
3
by: Marc Hoeijmans | last post by:
Hello, I have a problem with the Response.Redirect. The redirect is working for some users for other useres it is not working. We all use the same...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS)...
10
by: Eirik Eldorsen | last post by:
How can I 301 redirect www.example.com/default.aspx to www.example.com without using ISAPI filters?
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.