Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Help with script

Reply
 
Old 08-15-2008   #1 (permalink)
George


 
 

Help with script

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?

My System SpecsSystem Spec
Old 08-15-2008   #2 (permalink)
mayayana


 
 

Re: Help with script

You might get an answer here but this is actually
just a VBS group, not ASP. You'd be better off asking in
an ASP group.

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>
> 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?

My System SpecsSystem Spec
Old 08-15-2008   #3 (permalink)
George


 
 

Re: Help with script

ok....thank you

"mayayana" wrote:
Quote:

> You might get an answer here but this is actually
> just a VBS group, not ASP. You'd be better off asking in
> an ASP group.
>
>
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>
> > 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?
>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Logon Script Causing Laptops To Hang - Problems in script? VB Script
problem passing args to script 'There is no script engine for file extenstion' VB Script
Include another script, keep variables in included script? PowerShell
Script file has 'OS Handle' error when run from script PowerShell
Can you drag-n-drop a file on top of a PS script to run the script? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46