title: How to handle null in session variable of type int
body: <p>If the <code>session["Colindex"]</code> is null. It throws a error msg saying that Object reference not set to null.</p>
  
  <pre><code>int colid =(int) Session["ColIndex"];
  </code></pre>
  
  <p>Any help is appreciated</p>