Skip to content

Link image with session

Mike Simo

Asked Jun 6, 2014, 10:59 AM EDT1 answer
Share
LinkedInX
Hi 
I have nave user on the header that should show the image of the user after he login but i dont know how i can show the user image depending on session  

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi, you can directly access the session value without using Eval. Generally Eval is used if you are binding data from any DataSource but as you are using session value you can use the below code: but please make sure session has value.
    <asp:image id="imgsession" Text='<%#Session["Variable"]%>' ></asp:Image>
    Visit at::
    http://www.ati-erp.com
    0