session using asp.net and passing values
<p>I want to know that how to use session in asp.net for that I use the following code:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    string academics = "academics";
    Session["header_value"] = academics;
}
</code></pre>

<p>then I want to use that value in following code </p>

<pre><code>&lt;a href="academics.aspx"&gt;
     &lt;%if("header_value"=="academics")
     {%&gt;
          &lt;div id="academics" class="pri-nav active"&gt;&lt;/div&gt;
     &lt;%}else{%&gt;
          &lt;div id="academics" class="pri-nav"&gt;&lt;/div&gt;
     &lt;%}%&gt;&lt;/a&gt;
</code></pre>

<p>I also want to know that is there any other way to pass value to .cs other than session?</p>
