Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2004, 11:18 AM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling server-side routine thru Onclick event

How can I call a server-side Function or Sub from an HTML onClick event? Or can I do that at all? Any alternative?

Thanks.

 
Old December 20th, 2004, 02:54 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

The only way to get back to the server side from the client side is to send something back, there are several methods of doing this :

1. Post the entire page
2. Post part of the page - e.g. a Frame/IFrame
3. Make a dynamic call to a JS/XML file

If you function does not require server side processing, you could move it into client side scripting for example.
 
Old December 20th, 2004, 03:17 PM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks. It does seem to me I need to think hard if I do have to use server-side processing for this.
Thanks again.






Similar Threads
Thread Thread Starter Forum Replies Last Post
onClick event not working !!! muklee Javascript How-To 14 June 4th, 2008 04:08 PM
'onclick' and 'dblclick' both client side event in myself.panku ASP.NET 2.0 Professional 1 June 2nd, 2008 12:40 PM
onclick event bjackman Access 6 July 15th, 2004 06:54 AM
onclick event pigtail Javascript 1 April 11th, 2004 03:10 PM
onClick Event mateenmohd Javascript 4 December 16th, 2003 01:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.