-
Junior Member
Method call from javascript
I would like to call a method from client side javascript.
-
Junior Member
Re: Method call from javascript
By using AjaxFramework of microsoft we can call sever side web method from javascript
Ex:
PageMethods.GetOptions(param1,OncallOptionCompleted,OncallOption Error);
above
Get Option is Server side method declare as Public Webmethod in code behind file
param1- parameter to funtion
OncallOptionCompleted - after call server side method we will get value from this method
OncallOption Error - this one call if any error occur in the server method
I hope this one was clear to you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules