Click here to Skip to main content
15,904,877 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
How to call server side function in javascript without any postback.Is it possible?

Thanks
Posted

 
Share this answer
 
v2
There has to be some form of posting back to the server in order to trigger an activity. The two HTTP verbs of most interest to you here are POST and GET. Even techniques such as using AJAX use these to communicate back with the web server.

By any chance, are you referring to avoiding having to perform an ASP.NET postback operation? If you are, then you can use AJAX to communicate with the server side method. I demonstrate the client side of using AJAX in my article, A Whistle-stop Tour of jQuery[^] (look for the section marked "It doesn't just support Dutch football" for details). I haven't covered the server side in my answer here because I have no idea what technology your server side stack is (i.e. is it plain ASP.NET or MVC).
 
Share this answer
 
It's called AJAX and if you have done any web development at all in the past five years you should have at least once stumbled upon the word at some point.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900