"Ahmd" <mk*******@gmail.comwrote in message
news:11**********************@w5g2000hsg.googlegro ups.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
<pedantic>
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
</pedantic>
--
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