Print all session/post/get variables in ASP.NET page -


i new asp.net, i'm quite used php (which unfortunately not use @ work) i'd print session variables. in php it's quite easy, use:

echo '<pre>' . print_r($_session, true) . '</pre>'; 

for this, there as-easy asp.net equivalent?

with box being label.

foreach (string in session.contents) {   if (session[i] != null) {     box.text += + " = " + session[i].tostring() + "\n";   } } 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -