Session["myvar"]="hello";Response.Write(Session["myvar"]);
Checking if the session variable is set
if (Session["adminid"] != null)
{
//Your logic
}
Same way you can store the db value in a variable and can check it with
session stored value. But remember to type cast depending on the value you
are matching with.
On Tue, Jul 14, 2009 at 2:51 PM, gagandeep sharma
<[email protected]>wrote:
> how to create a seesion variables in asp.net and how we comapre it with
> the fields of sql server...
>
> if any1 know this, then pls help me
>
> --
> GO and LEAD from Whereever You are.
> Think Big and Think Fast.
>
>
>
--
Regards
Jay Dan