For Programmers: Free Programming Magazines  


Home > Archive > ASP > August 2007 > call asp fuction on button click in asp









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author call asp fuction on button click in asp
vinodkus@gmail.com

2007-08-13, 7:56 am

dear sir/madam
1> I want to call an asp function through onclick method of button.
2> I want to call an asp function through javaScript
Thanks in advance

Evertjan.

2007-08-13, 7:56 am

wrote on 13 aug 2007 in microsoft.public.inetserver.asp.general:

> dear sir/madam


Wow!

>1> I want to call an asp function through onclick method of button.


Impossible, since ASP runs serverside code, and it is not very useful to
put a button on a server screen.

>2> I want to call an asp function through javaScript


Since asp is not a function but a serverside platform for running vbscript
or/and j[ava]script, an asp function as susch is a misnomer.

Impossible if you mean clientside javascript, because when that js runs,
the asp code on the server is already finished.

Quite possible when using serverside js, the function itself could even
have been written in js, but I suspect you know that by now.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Bob Barrows [MVP]

2007-08-13, 7:56 am

vinodkus@gmail.com wrote:
> dear sir/madam
> 1> I want to call an asp function through onclick method of button.
> 2> I want to call an asp function through javaScript
> Thanks in advance


Research the use of XMLHTTP, or Ajax as it is known today. For further
help with this, post to a client-side scripting group such as
..scripting.jscript
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com