Click here to Skip to main content
14,331,308 members
Rate this:
Please Sign up or sign in to 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
Rate this:
Please Sign up or sign in to vote.

Solution 1

Hi,
Try this:
<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
   
v2
Comments
skypoints 12-Apr-12 13:31pm
   
Thanks man,
Reza Ahmadi 12-Apr-12 14:13pm
   
Your welcome
Rate this:
Please Sign up or sign in to vote.

Solution 2

   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100