HTML QueryString

Posted on 2012-08-14
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
    LVL 3

    Expert Comment

    by:John Smith
    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

    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

    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 33

    Assisted Solution

    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

    Thanks folks

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    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.…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now