Hi Everyone ,
I have a problem in loading the image from database, i have done some R and D on google but not found solution, I came to know that we have to use handler classes to achieve this. Can help anyone?
Load image on web page from SQL server database
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Pankaj Rawat71 reputationPosted Apr 24, 2013, 2:27 AM EDT
Code :-
On Page Load
if(!ispostback)
{
Guid UserID=(Guid)Membership.GetUser().ProviderUserKey;
Profiles profilesObject=Profiles.GetRecordByUserID(UserID);
if(profilesObject.s_profileImage!=string.Empty)
image1.imageUrl="~/ContentSite/ProfilesImages/"+profilesObject.s_ProfileImage;
}
}
Pradip PandeyRank #452 · 5.6K reputationPosted Apr 24, 2013, 2:32 AM EDT
Please refer this link
http://www.c-sharpcorner.com/UploadFile/satyapriyanayak/add-details-of-an-employee-with-image-and-display-it-into-a/
Hope it will help you.
Ravikumar G178 reputationPosted Apr 24, 2013, 3:55 AM EDT
Ravikumar G178 reputationPosted Apr 24, 2013, 3:59 AM EDT