I Can Not Use Session In Page _Load And I Got Bellow Error

Posted by LostLord on Stack Overflow See other posts from Stack Overflow or by LostLord
Published on 2010-04-05T08:18:35Z Indexed on 2010/04/05 8:23 UTC
Read the original article Hit count: 303

Filed under:
|
|
|
|

hi my dear friends ....

why i got this error :

(Object reference not set to an instance of an object.)

when i put this code in my page_load.:

        protected void Page_Load(object sender, EventArgs e)
    {

        BackEndUtils.OverallLoader();

        string Teststr = Session["Co_ID"].ToString();

    }

==========================================================================

this session is made when user logins to my web site and this session works in other areas...

thanks for your attention

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#