Problem while trying to reterive value from arraylist stored in session
<p>Please Help me, Here is my code </p>

<pre><code>        ArrayList arrValues = new ArrayList();
        arrValues = (ArrayList)Session["ArrValues"];


         string CustName, Addr1, Addr2, City, State, Country, Pin, Email,Order,CustToken;
         string SName, SAddr1, SAddr2, SCity, SState,SPin, SCountry;         
         **CustName = arrValues[1].ToString().Trim();**
</code></pre>

<p>It is giving a NullReference execption while trying to get the value of CustName from the arraylist stored in the session. Belo I have given  the link to see the video </p>

<p><a href="http://www.talash.com/testingvideo/2011-03-18_0958_Payment_Gateway_Problem.swf" rel="nofollow">http://www.talash.com/testingvideo/2011-03-18_0958_Payment_Gateway_Problem.swf</a></p>
