Skip to content

Instantly share code, notes, and snippets.

@xrisdoc
Created November 30, 2016 11:02
Show Gist options
  • Save xrisdoc/ff39ea96000804f0355b3ea2237391ab to your computer and use it in GitHub Desktop.
Save xrisdoc/ff39ea96000804f0355b3ea2237391ab to your computer and use it in GitHub Desktop.
ASP.NET Server Variables List
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<h2>ASP.NET Server Variables</h2>
<table class="table table-striped table-bordered table-condensed">
<tr>
<th>Key</th>
<th>Value</th>
</tr>
@foreach (var key in Request.ServerVariables.AllKeys)
{
<tr>
<td>@key</td>
<td>@Request.ServerVariables.Get(key)</td>
</tr>
}
</table>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment