HTML QueryString

Posted on 2012-08-14
Medium Priority
Last Modified: 2012-08-15
I have a devex menu on the site I inherited with what I know is an issue but want verification

The link in the menu item is


When clicked on it actually navigates to SpecificSkillsChecklist.aspx and the vb code looks at the querystring values.

We get an error message on Form Post saying
"blah...blah...blah...Gastroenterology/ContactUs.aspx not found"

I think its trying (On form submit or postback) to do a redirect to the "Gastroenterology/" sub folder?

Before I tear this site apart...because it uses this kind of stuff everywhere...hard coded...

I just want some verification that I should go and get rid of all those forward slashes...or handle them somehow.
Question by:lrbrister

Expert Comment

by:John Smith
ID: 38291738
Tough to say without seeing what the source code is doing (or trying to do). When do the pages fail? Is there a specific pattern?

Author Comment

ID: 38291764
The Form is a large one and can take some time to fill in.

They seem to fail when there's an unusually long period between loading the form and submitting although I can't guarantee that.

I've increased the timeout periods to allow 30 minutes which is at least 15 minutes more than enough.

And the one thing about when it happens is that it is always between 1 and 3 am.

We don;t run any backups then nor reboots of our SQL server or Web Service

I've also checked with the hosting company and I've been assured there is no maintenance taking place unless we get notified first...which we haven't been.
LVL 35

Accepted Solution

Robert Schutt earned 1600 total points
ID: 38291807
One thing that comes to mind; you should really urlencode query parameters. To try that out manually, try changing that last slash to %2F:

Open in new window

LVL 34

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 400 total points
ID: 38291832
As [robert_shutt] notes, the forward slashes should be URLEncoded.  

An alternative (and perhaps a better one) would be to push the NavigateUrl value into a session variable.  Then it's hidden, more easily manipulated, and not likely to be tampered with than pushing it around in the URL.

Author Closing Comment

ID: 38293175
Thanks folks

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Loops Section Overview

809 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