hello, i create one web project in that i want to check running instances in client system's. here suppose one user show a my website and that time i want to see that client's system how many application in running mode. thanks in advance bye please replay me urgent
This web page list a snippet that might do it. 411asp net/func/content?tree=411asp/tutorial/howto/usermana&id=6234810 Here's the code // this is in the global.asax.cs file protected void Application_Start(Object sender, EventArgs e) { Application["activeUsers"] = 0; } protected void Session_Start(Object sender, EventArgs e) { Application.Lock(); Application["activeUsers"] = (int)Application["activeUsers"] + 1; Application.UnLock(); } protected void Session_End(Object sender, EventArgs e) { Application.Lock(); Application["activeUser"] = (int)Application["activeUsers"] - 1; Application.UnLock(); } // this gets put into the page your want to display your value in Application["activeUsers"] Code (markup):