Running ASP.NET server side code from JavaScript...

C

Charlie@NISH

Hi:

What technologies are available in ASP.NET for running Server side code from
a JavaScript function?

Thanks,
Charlie
 
M

Martin Honnen

Charlie@NISH wrote:

What technologies are available in ASP.NET for running Server side code from
a JavaScript function?

Client-side JavaScript?
There what .NET on the server and IE/Win on the client support is web
services, so on the server you write a web service with .NET (.NET
allows that easily with .asmx pages and declaring methods as
[WebMethod]) which then provides a WSDL description of your web service
and on the IE client you use the web service behavior (search
msdn.microsoft.com for that) to load that WSDL description and then make
your client-side calls to the web service and receive the response in a
callback function.

Mozilla also has some support to create a client-side proxy object from
the WSDL description of a server-side web service but interoperability
with .NET web services is rather poor as far as I have found.

If you need broader client support then the latest versions of Mozilla,
Opera, Safari and Konqueror all have XMLHttpRequest support so you can
use that to send and receive XML data to/from the server, see
<http://www.faqts.com/knowledge_base/view.phtml/aid/17226/fid/616>
ASP.NET of course can easily parse/process/create XML.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top