Connecting Tech Pros Worldwide Help | Site Map

Help with request.querystring

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 15th, 2008, 03:45 PM
=?Utf-8?B?R2Vvcmdl?=
Guest
 
Posts: n/a
Default 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="contractor_display.asp?NAV=#">#</a>
For I = 1 To 26
%>
<a href="contractor_display.asp?NAV=<%= 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.QueryString("NAV") = "" Then
intPage = "A"
Else
intPage = Request.QueryString("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

  #2  
Old August 15th, 2008, 03:55 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Help with request.querystring

=?Utf-8?B?R2Vvcmdl?= wrote on 15 aug 2008 in
microsoft.public.inetserver.asp.general:
Quote:
I am making a page that calls itself to display records from a database.
The links are setup as follows:
<a href="contractor_display.asp?NAV=#">#</a>
[ASP code skipped]
Quote:
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)
  #3  
Old August 15th, 2008, 04:35 PM
Dave Anderson
Guest
 
Posts: n/a
Default Re: Help with request.querystring

George wrote:
Quote:
<a href="contractor_display.asp?NAV=#">#</a>

You will need %23 instead of #:

<a href="contractor_display.asp?NAV=%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.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.