WebMethod Example

I want a label box to be refreshed every one second with a random number generated at the server This is a classic example of WebMethods. WebMethods are written on the server side in the page class. WebMethods are static. Here is a simple implementation of a webmethod:

To be able to call this WebMethod from Javascript, the asp:ScriptManager[…]

Read more