Hello...
Let's say we have 2 time consuming functions, aaa and aaa1 inside a aspx page.
[WebMethod]
public static string aaa(int i)
{
Thread.Sleep(1000);
return i.ToString();
}
[WebMethod]
public static string aaa1(int i)
{
Thread.Sleep(1000);
return i.ToString();
}
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
</asp:ScriptManager>
<span id="displayspan"></span>
<br />
<input type="button" value=
View Complete Post