Click here to Skip to main content
15,885,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a method written in code behind using C#.

ex: public void fun()
{}

How to call that method in Javascript

function sum()
{
 fun() //code behind method
}


Any link ?

Thanks In Advance
Posted
Updated 27-Jun-11 3:47am
v2

Start here[^].
 
Share this answer
 
You can use AJAX to call code behind functions to javascript
 
Share this answer
 
There are few ways to interact with server side through client side(Javascript):
1. XMLHttpRequest[^]
2. Callback[^]
3. WebService call[^]
4. PageMethod[^]
 
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