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.
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
Elizabeth Keen2 pointsPosted Jun 6, 2014, 12:13 PM EDT
<asp:image id="imgsession" Text='<%#Session["Variable"]%>' ></asp:Image>
Visit at::
http://www.ati-erp.com