Help with request.querystring

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?R2Vvcmdl?=

    Help with request.querystring

    Hi all,

    I am making a page that calls itself to display records from a database.
    The links are setup as follows:
    <a href="contracto r_display.asp?N AV=#">#</a>
    For I = 1 To 26
    %>
    <a href="contracto r_display.asp?N AV=<%= chr(64 + I) %>"><%= chr(64 + I)
    %></a>
    <%
    Next


    The above gives me a link for the letters "A" thru "Z" and one for
    everything else("#").

    My problem is the "#" is never recognized. When I reach the following:

    If Request.QuerySt ring("NAV") = "" Then
    intPage = "A"
    Else
    intPage = Request.QuerySt ring("NAV")
    End If

    I do not get the # passed. It returns a blank and the "A" is put into
    intPage and the A page is displayed.

    Any ideas on why I cannot get the # to pass?

    Thanks in advance,

    George
  • Evertjan.

    #2
    Re: Help with request.queryst ring

    =?Utf-8?B?R2Vvcmdl?= wrote on 15 aug 2008 in
    microsoft.publi c.inetserver.as p.general:
    I am making a page that calls itself to display records from a database.
    The links are setup as follows:
    <a href="contracto r_display.asp?N AV=#">#</a>
    [ASP code skipped]
    The above gives me a link for the letters "A" thru "Z" and one for
    everything else("#").
    >
    My problem is the "#" is never recognized. When I reach the following:
    # starts the anchor position and is not part of the querystring.

    NAV=#

    returns an empty content of NAV.

    Not an ASP problem, please ask html Q elsewhere.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Dave Anderson

      #3
      Re: Help with request.queryst ring

      George wrote:
      <a href="contracto r_display.asp?N AV=#">#</a>

      You will need %23 instead of #:

      <a href="contracto r_display.asp?N AV=%23">#</a>



      --
      Dave Anderson

      Unsolicited commercial email will be read at a cost of $500 per message. Use
      of this email address implies consent to these terms.


      Comment

      Working...