ASP(Image Click)

ASP(Image Click)

am 31.05.2007 11:48:52 von Ahmd

Pls look at this code, i want to call this function from an image
click event.


CPage=Cint(Request.Form("CurrentPage")) 'get CPage value from form's
CurrentPage field
Select Case Request.Form("Submit")
Case "Previous" 'if prev button pressed
CPage = Cint(CPage) - 1 'decrease current page
Case "Next" 'if next button pressed
CPage = Cint(CPage) + 1 'increase page count
End Select

Re: ASP(Image Click)

am 31.05.2007 17:38:49 von Jon Paal

many slide show examples are available

google:

asp -.net slide show

or

asp -.net photo gallery


"Ahmd" wrote in message news:1180604932.227053.257110@w5g2000hsg.googlegroups.com...
> Pls look at this code, i want to call this function from an image
> click event.
>
>
> CPage=Cint(Request.Form("CurrentPage")) 'get CPage value from form's
> CurrentPage field
> Select Case Request.Form("Submit")
> Case "Previous" 'if prev button pressed
> CPage = Cint(CPage) - 1 'decrease current page
> Case "Next" 'if next button pressed
> CPage = Cint(CPage) + 1 'increase page count
> End Select
>

Re: ASP(Image Click)

am 31.05.2007 20:22:08 von John Blessing

"Ahmd" wrote in message
news:1180604932.227053.257110@w5g2000hsg.googlegroups.com...
> Pls look at this code, i want to call this function from an image
> click event.
>
>
> CPage=Cint(Request.Form("CurrentPage")) 'get CPage value from form's
> CurrentPage field
> Select Case Request.Form("Submit")
> Case "Previous" 'if prev button pressed
> CPage = Cint(CPage) - 1 'decrease current page
> Case "Next" 'if next button pressed
> CPage = Cint(CPage) + 1 'increase page count
> End Select



You can't run ASP from an image click

An image click happens on the client machine.

ASP runs on a server.

All you could do on the image click is run client-side script (best if it
was Javascript), which submits the form and the target page runs your code.
Really, though, client-side javascript could do all this without needing any
..asp



--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook, find/replace,
send newsletters