Last post Apr 08, 2013 11:26 PM by Shawn - MSFT
Apr 05, 2013 09:20 AM|kreativeuser|LINK
i want to call a mehod of server side in vb.net to be called on click event of html button. and for this i have to make it static and also have to add a [webmethod] attribute into it. but i was not aware of it how to add this attribute into a server side
Please someone tell me if he/she had ever used this method but must ensure that i'm using vb.net not c#.
Please help me.
Apr 08, 2013 11:26 PM|Shawn - MSFT|LINK
Here are some steps to call server side method from client side which you could refer to:
Step 1 : Put ScriptManager on .ASPX page.
Step 2 : Set EnablePageMethods="True" in ScriptManager.
Step 3 : Create one static method in server side that return some value.
Step 4 : Set WebMethod attribute to above the method.
Step 6 : Create callback method where you will be able to retrieve return parameter from server side method.
For more information, you could access to the below link: