Re: Query string testing
From: Carl Gilbert (cnl_at_newsgroup.nospam)
Date: 11/21/04
- Next message: Carl Gilbert: "Re: Query string testing"
- Previous message: Steven Burn: "Re: Query string testing"
- In reply to: Steven Burn: "Re: Query string testing"
- Next in thread: Steven Burn: "Re: Query string testing"
- Reply: Steven Burn: "Re: Query string testing"
- Messages sorted by: [ date ] [ thread ]
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
>>
>>
>
>
- Next message: Carl Gilbert: "Re: Query string testing"
- Previous message: Steven Burn: "Re: Query string testing"
- In reply to: Steven Burn: "Re: Query string testing"
- Next in thread: Steven Burn: "Re: Query string testing"
- Reply: Steven Burn: "Re: Query string testing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|