ASP.Net and threading
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I am trying to use thread in my ASP.Net application and facing some problem. I want to monitor a Application[“variable”] variable, for this I am using following code in thread start method. /*my thread start function*/ private void monitor() { /*compare the application variable with monitorStartGame*/ while(monitorStartGame.Equals(Convert.ToInt32(Application["startGame"]))) { } Label1.Text="thread ended"; } but it does not stop even the values is changed, and the text of Label1 is not changed. Plz help me I will be grateful to u.