using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.Web.UI; using System.Web.UI.WebControls;
namespace Forumasp { public partial class AjaxLoder : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {
}
[WebMethod] public static string GetData() { System.Threading.Thread.Sleep(5000); string data = "You could try the same unordered query 100,000 times and always receive it with the same ordering, and thus come to believe you can rely on said ordering. But that would be a mistake, because one day, something will change and it will not have the order you expect. One example is when a database is upgraded to a new version of SQL Server--this has caused many a query to change its ordering. But it doesn't have to be that big a change. Something as little as adding or removing an index can cause differences. And more: Installing a service pack. Partitioning a table. Creating an indexed view that includes the table in question. Reaching some tipping point where a scan is chosen instead of a seek. And so on"; return data; } } }
Show loader before Loading Data:
Result:
Liked By
Write Answer
Loading Screen During Ajax Call
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
26-Nov-2015Show loader before Loading Data:
Result: