Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i dont know How to load a picture from SQL server to tag <img> after login. I use it for user icon after login successful.

who can help me!

thanks
Posted

Hi,
Try this:
ASP.NET
<img src='<%# Eval("ImageUrl")%>'  runat="server" id="imgsrv" />

In your table, ImageUrl is a field which holds image addresses.
You can use this code in every page which is your default page which is redirected to, after authentication.

I hope it helps,
Cheers
 
Share this answer
 
v2
Comments
skypoints 12-Apr-12 13:31pm    
Thanks man,
Reza Ahmadi 12-Apr-12 14:13pm    
Your welcome
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900