Advertise with us

session value lost

Posted by  Manoj Bhatt
 1470  View(s)
Rate this:

Am doing wepsite for show images from local drive using using session object for Transfer image path from first page to second page but session value does't pass to next page.

i got null value in session object. am using inproc session mode

kindly help me thanks

  1. Re: session value lost

    Hi Manoj, 

    How you are storing the path of images. See i am doing like this and everything goes file for me.

    Session["Path"] = @"D:\Images\PNEUMATIX_MR_CardiovascularHeart Cardiac Function_6\img.jpeg";

    on another page i am taking like this.

    Label1.Text = Session["Path"].ToString();

    And i am using sessionState mode="inProc". My be you have some problem with path.