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?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravikumar GPosted Apr 24, 2013, 7:59 AM
Ravikumar GPosted Apr 24, 2013, 7:55 AM
Pradip PandeyPosted Apr 24, 2013, 6:32 AM
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.
Pankaj RawatPosted Apr 24, 2013, 6:27 AM
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;
}
}