get session variables
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
it's possible to get the name of session variables of a page using the c# classes HttpWeb*? or there's any another way? thanks a lot
Not too sure if this is very helpful for you or not, but could you not do a for loop through the entire Session.Keys collection? Like so: For(i=0;i<=Session.Keys.Count - 1;i++) { Response.Write(Session.Keys[i].ToString()); } You can get the names of each one that way. I would probably store the names into another array, and iterate through them like that, but... that's just me. Hope this helped! --Keith