Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to use jquery or ajax for run asp.net vb code ?
for example


run this with ajax (callback)

public sub ex()
.
.
.
.
end sub
Posted

Maybe you've got some confusion about that =)
C#
public sub ex()
...
end sub


, - is a server side code, while jQuery or Ajax is a client side frameworks...

If you want to run some server side logic from a client side, i strongly advise to you look into SignalR framework.
 
Share this answer
 
v2
Hello

I think you can have a some idea from the given link.
Please let me know if you have any question.

http://pranayamr.blogspot.com/2012/01/calling-server-side-function-from.html[^]
 
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