B
Big E
I'm using ASP.net and SQL Server.
I declare a Public Variable. I then set it depending on a if then else
statement below. My problem is because of the various round trips to the
server I lose the value of that variable by the time I need it.
Public CurrentStatus As Integer HERE IS WHERE I SET IT
If dtRealtor.Rows.Count <> 0 Then HERE IS WHERE I GIVE IT SOMETHING
CurrentStatus = 1
Else
CurrentStatus = 2
End If
Then when I call its value it equals 0 and I think its because of the server
round trips 0 it out.
Thank you,
Big E
I declare a Public Variable. I then set it depending on a if then else
statement below. My problem is because of the various round trips to the
server I lose the value of that variable by the time I need it.
Public CurrentStatus As Integer HERE IS WHERE I SET IT
If dtRealtor.Rows.Count <> 0 Then HERE IS WHERE I GIVE IT SOMETHING
CurrentStatus = 1
Else
CurrentStatus = 2
End If
Then when I call its value it equals 0 and I think its because of the server
round trips 0 it out.
Thank you,
Big E