Quantcast
Channel: ASPSnippets RSS Feed
Viewing all articles
Browse latest Browse all 4757

Call Server Side function from JavaScript without PostBack in ASP.Net

$
0
0
Here Mudassar Ahmed Khan has explained with an example, how to call Server Side function from JavaScript without PostBack in ASP.Net using C# and VB.Net. In order to call a Server Side function from JavaScript, it must be declared as static (C#) and Shared (VB.Net) and is decorated with WebMethod attribute. Then the Server Side method can be easily called with the help of ASP.Net AJAX PageMethods and JavaScript without PostBack in ASP.Net.

Viewing all articles
Browse latest Browse all 4757

Trending Articles