How to get the values from Dictionary type SESSION Variable in C#
<p>I am using C#.</p>

<p>I have got below format values in my <strong>SESSION variable ["FROMDATA"]</strong>, I am using <strong>DICTIONARY</strong> to store the FORM Posted Data. Please see the related <a href="http://stackoverflow.com/questions/4723240/how-to-store-all-the-form-posted-data-in-asp-net-dictionary">question</a>.</p>

<p>Below are the some values in my SESSION Variable.</p>

<pre><code>1) key - "skywardsNumber" value-"99999039t"
2) key - "password" value-"a2222222"
3) key - "ctl00$MainContent$ctl22$FlightSchedules1$ddlDepartureAirport-suggest" value-"London"
4) key - "ctl00$MainContent$ctl22$ctl07$txtPromoCode" value-"AEEGIT9"
.
.
....so on
</code></pre>

<p>Now I want to <strong>create a CLASS</strong> with <strong>METHOD</strong> in it, in which I will just pass the <strong>"KEY"</strong> and it will first check it for <strong>NULL OR EMPTY</strong> and then it will <strong>return its value from the SESSION Variable ["FROMDATA"]</strong>.</p>

<p>Please suggest <strong>using C#</strong>.</p>
