session value lost

Total Post:154

Points:1086

 1371  View(s)
Ratings:
Rate this:

Am doing wepsite for show images from local drive using asp.net.am 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.

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.