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

Re: Query string testing by Maarten

Maarten
Sun Nov 21 10:23:46 CST 2004

How do you want to start? Can the user choose the group and the first
record? Or only the group? And how do you calculate the max parameter. Or
the pictures by group in one folder or all the pictures of all the groups in
one folder? How are the pictures named ?

Maarten.



Re: Query string testing by Steven

Steven
Sun Nov 21 10:30:28 CST 2004

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



Re: Query string testing by Carl

Carl
Sun Nov 21 11:01:49 CST 2004

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



Re: Query string testing by Carl

Carl
Sun Nov 21 11:07:23 CST 2004

The images are named as follows:

[group]
[images]

01
01, 02, 03, 04, .... 28
02
01, 02, 03, 04, .... 18

I am providing a thumbnail view of all the images so I know the image and
the group selected. I will also know the max number of images in the group.

So I would then pass in the selected group image along with the number
ofimages in that group. From the image and group I am going:

<img src="images/<%=grp%><&=img%>.bmp">

Which would return something like 'images/0205.bmp' where the images are
numbered [group][image].bmp
eg
0101.bmp
0102.bmp
etc

Regards, Carl


"Maarten" <please@no-mail.com> wrote in message
news:mi3od.31350$6i4.1568801@phobos.telenet-ops.be...
> How do you want to start? Can the user choose the group and the first
> record? Or only the group? And how do you calculate the max parameter. Or
> the pictures by group in one folder or all the pictures of all the groups
> in one folder? How are the pictures named ?
>
> Maarten.
>
>



Re: Query string testing by Steven

Steven
Sun Nov 21 11:04:31 CST 2004

My fault..... change

<%Clng(

to

<%=Clng(

.....and the problem should disappear. (Clng works fine for me on the site's
I've used it on, so the missing "=" is the only thing I can think of)

--

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:#0qeJt#zEHA.3656@TK2MSFTNGP09.phx.gbl...
> 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
> >>
> >>
> >
> >
>
>



Re: Query string testing by Carl

Carl
Sun Nov 21 11:20:51 CST 2004

That works great cheers.

By doing the conversion on the image number, it means it retruns 2 rather
than 02.
This isn't a major problem, just means I will have to re-structure my image
names.

Regards, Carl


"Steven Burn" <pvt@noyb.com> wrote in message
news:uJIZZx%23zEHA.1264@TK2MSFTNGP12.phx.gbl...
> My fault..... change
>
> <%Clng(
>
> to
>
> <%=Clng(
>
> .....and the problem should disappear. (Clng works fine for me on the
> site's
> I've used it on, so the missing "=" is the only thing I can think of)
>
> --
>
> 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:#0qeJt#zEHA.3656@TK2MSFTNGP09.phx.gbl...
>> 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
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Re: Query string testing by Carl

Carl
Sun Nov 21 11:57:40 CST 2004

So now thaks to Steven Burn I now have to code to build the links to move to
the next or the previous image in a collection.

My second question now is, how can I dynamically show these links based on a
simple rule?

if not <%=img%> = 1 then
<a
href="ShowImage.aspx?group=<%=grp%>&image=<%=CLng(request.QueryString("image")-1)%>">PREVIOUS</a>
elseif not <%=img%> = <%=max%> then
<a
href="ShowImage.aspx?group=<%=grp%>&image=<%=CLng(request.QueryString("image")
+1)%>">NEXT</a>
end if

Obviously the above code is more VB than anything else, but is something
like this possibly is ASP?

Regards, Carl



"Carl Gilbert" <cnl@newsgroup.nospam> wrote in message
news:%23oKHiS%23zEHA.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
>
>



Re: Query string testing by Steven

Steven
Sun Nov 21 12:03:56 CST 2004

<%
if Clng(img) > 1 then
%>
<a
href="ShowImage.aspx?group=<%=grp%>&image=<%=CLng(request.QueryString("image
")-1)%>">PREVIOUS</a>
<%
end if
if not Clng(img) = Clng(max) then
%>
<a
href="ShowImage.aspx?group=<%=grp%>&image=<%=CLng(request.QueryString("image
")
+1)%>">NEXT</a>
<%
end if
%>

--

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:OMEHXM$zEHA.824@TK2MSFTNGP11.phx.gbl...
> So now thaks to Steven Burn I now have to code to build the links to move
to
> the next or the previous image in a collection.
>
> My second question now is, how can I dynamically show these links based on
a
> simple rule?
>
> if not <%=img%> = 1 then
> <a
>
href="ShowImage.aspx?group=<%=grp%>&image=<%=CLng(request.QueryString("image
")-1)%>">PREVIOUS</a>
> elseif not <%=img%> = <%=max%> then
> <a
>
href="ShowImage.aspx?group=<%=grp%>&image=<%=CLng(request.QueryString("image
")
> +1)%>">NEXT</a>
> end if
>
> Obviously the above code is more VB than anything else, but is something
> like this possibly is ASP?
>
> Regards, Carl
>
>
>
> "Carl Gilbert" <cnl@newsgroup.nospam> wrote in message
> news:%23oKHiS%23zEHA.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
> >
> >
>
>



Re: Query string testing by Jeff

Jeff
Wed Nov 24 17:33:11 CST 2004

Seems easier to fix the conversion function that change all your filenames


"Carl Gilbert" <cnl@newsgroup.nospam> wrote in message
news:#wkxy3#zEHA.1188@tk2msftngp13.phx.gbl...
> That works great cheers.
>
> By doing the conversion on the image number, it means it retruns 2 rather
> than 02.
> This isn't a major problem, just means I will have to re-structure my
image
> names.
>
> Regards, Carl
>
>
> "Steven Burn" <pvt@noyb.com> wrote in message
> news:uJIZZx%23zEHA.1264@TK2MSFTNGP12.phx.gbl...
> > My fault..... change
> >
> > <%Clng(
> >
> > to
> >
> > <%=Clng(
> >
> > .....and the problem should disappear. (Clng works fine for me on the
> > site's
> > I've used it on, so the missing "=" is the only thing I can think of)
> >
> > --
> >
> > 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:#0qeJt#zEHA.3656@TK2MSFTNGP09.phx.gbl...
> >> 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
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Re: Query string testing by Carl

Carl
Thu Nov 25 03:41:10 CST 2004

I haven't finished naming all my files yet so I will just change the ones I
have already done and do the same with the rest.

Cheers


"Jeff Dillon" <jeff@removeemergencyreporting.com> wrote in message
news:uHj5m3n0EHA.3448@TK2MSFTNGP09.phx.gbl...
> Seems easier to fix the conversion function that change all your filenames
>
>
> "Carl Gilbert" <cnl@newsgroup.nospam> wrote in message
> news:#wkxy3#zEHA.1188@tk2msftngp13.phx.gbl...
>> That works great cheers.
>>
>> By doing the conversion on the image number, it means it retruns 2 rather
>> than 02.
>> This isn't a major problem, just means I will have to re-structure my
> image
>> names.
>>
>> Regards, Carl
>>
>>
>> "Steven Burn" <pvt@noyb.com> wrote in message
>> news:uJIZZx%23zEHA.1264@TK2MSFTNGP12.phx.gbl...
>> > My fault..... change
>> >
>> > <%Clng(
>> >
>> > to
>> >
>> > <%=Clng(
>> >
>> > .....and the problem should disappear. (Clng works fine for me on the
>> > site's
>> > I've used it on, so the missing "=" is the only thing I can think of)
>> >
>> > --
>> >
>> > 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:#0qeJt#zEHA.3656@TK2MSFTNGP09.phx.gbl...
>> >> 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
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>