Re: Query string testing

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Carl Gilbert (cnl_at_newsgroup.nospam)
Date: 11/21/04


Date: Sun, 21 Nov 2004 17:01:49 -0000

This looks good cheers. Unfortunately I got back the following error:

    "Variable uses an Automation type not supported in VBScript: 'CLng'"

"Steven Burn" <pvt@noyb.com> wrote in message
news:ea8uXe%23zEHA.3808@TK2MSFTNGP15.phx.gbl...
> {NEXT LINK}
> http://whatever/ShowImage.aspx?group=[group]&imgId=<%CLng(request.querystrin
> g("image") +1)%>
> {PREVIOUS LINK}
> http://whatever/ShowImage.aspx?group=[group]&imgId=<%CLng(request.querystrin
> g("image") -1)%>
>
> Obviously, the above assumes the image is held in the "image" querystring.
> You'd additionally need to replace [group] with
> <%request.querystring("group")%> (assuming your querystring is called
> "group")
>
> --
>
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
>
> "Carl Gilbert" <cnl@newsgroup.nospam> wrote in message
> news:#oKHiS#zEHA.2040@tk2msftngp13.phx.gbl...
>> Hi
>>
>>
>>
>> I am working on a site to provide displaying and navigation of images
>> from
>> several groups and have the following code that changes to displayed gif
>> based on the query string passed in:
>>
>>
>> Call: <a href="ShowImage.asp?group=01&image=01&max=28">Group 01, Image
>> 04,
>> Max 28</a>
>>
>>
>>
>> <%
>>
>> grp = request.QueryString("group")
>> img = request.QueryString("image")
>>
>> max = request.QueryString("max")
>> %>
>>
>>
>>
>> <html>
>> <head>
>> <title>ShowImage</title>
>> </head>
>> <body MS_POSITIONING="GridLayout">
>>
>>
>>
>> <form id="Form1" method="post" runat="server">
>> <img src="images/<%=grp%><%=img%>.bmp">
>>
>> </form>
>>
>>
>>
>> </body>
>> </html>
>>
>>
>>
>> My plan is to load the page with an image from a collection and allow the
>> user to navigate between the images in the collection using Next and
>> Previous buttons.
>>
>>
>>
>> Is there anyway to do something like the following?
>>
>>
>>
>> if not [image] = 01 then
>> 'show the previous button
>> elseif not [image] = [max] then
>> 'show the next button
>> end if
>>
>>
>>
>> Also, is it possible to add or subtract 1 for the next and the previous
>> links based on the image value?
>>
>> {NEXT LINK}
>> http://whatever/ShowImage.aspx?group=[group]&imgId=[image]+1&max=[max]
>> {PREVIOUS LINK}
>> http://whatever/ShowImage.aspx?group=[group]&imgId=[image]-1&max=[max]
>>
>>
>>
>> Regards, Carl Gilbert
>>
>>
>
>



Relevant Pages

  • Re: WDS and XP legacy images
    ... Best regards ... I all ready have the server in Mixed moded. ... images and i can also see new winpe images i have created. ... "Meinolf Weber" wrote: ...
    (microsoft.public.windows.server.setup)
  • Re: active x control
    ... Regards ... >> Steven Burn ... >> Ur I.T. Mate Group ... >>> doc file that ocx is using. ...
    (microsoft.public.scripting.vbscript)
  • Re: XP Print Wizard Component
    ... > Hi Shane ... > work with C Builder so im hoping this would too .. ... > Best Regards ... The reason for this is that many people including myself store images ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: CLIENT-XX failed to authenticate
    ... SP/patch level? ... Do you use images for install and are they sysprepped? ... Best regards ...
    (microsoft.public.windows.server.active_directory)
  • Re: include file asp
    ... Regards ... the name of the file is a field in the database. ... > Steven Burn ... > Ur I.T. Mate Group ...
    (microsoft.public.scripting.vbscript)