Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
Here is my code, I was able to print First Name and Last name, now I want to print those persons profile image and view details link to show particular person profile page, please help me.

C#
DataTable dt = new DataTable();
SqlDataAdapter sda = new SqlDataAdapter("select [FirstName] + ' ' + [LastName] AS Full_Name from FriendsPersonal", con);
sda.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
GridView1.Visible = true;
Posted
Updated 12-Dec-13 3:27am
v2

1 solution

:( Please do Google search before posting question, It'll save your massive time.

Check this article
Displaying Images from a Database in a GridView[^]
And do customize based on your requirement.

For Gridview related questions, check this article
CodeProject Frequently Asked Questions Series 1: The ASP.NET GridView[^]
 
Share this answer
 
Comments
Maciej Los 12-Dec-13 9:28am    
5!
abdulsafran 12-Dec-13 10:20am    
Thank you very much for your advise thatraja.
thatraja 12-Dec-13 12:13pm    
welcome

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