I am using Page Methods in ASP.NET, in the code behind I have written a method which should call a JavaScript function for each loop, then it should come back and continue the loop.
Is it possible?
[WebMethod]
public static void GetStatus()
{
for (int i = 0; i < 10; i++)
{
System.Threading.Thread.Sleep(500);
//Call javascript function
}
}
Any help will be greatly appreciated, thanks.
The client and server don't talk to each other - sounds like you need to call the web method over and over again from javascript for each value.