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