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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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