ASP.NET SQL查询结果打印详细信息,名称和视图详细信息 [英] ASP.NET SQL Query Result Print Details, Name and View Details
本文介绍了ASP.NET SQL查询结果打印详细信息,名称和视图详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的代码,我能够打印名字和姓氏,现在我想打印那些人的个人资料图片和查看详情链接以显示特定的个人资料页面,请帮助我。
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.
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;
推荐答案
:(请在发布问题之前先进行Google搜索,这样可以节省大量时间。
查看此文章
在GridView中显示数据库中的图像 [ ^ ]
并根据您的要求进行定制。
对于Gridview相关问题,请查看此文章
CodeProject常见问题系列1:ASP.NET GridView [ ^ ]
:( 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[^]
这篇关于ASP.NET SQL查询结果打印详细信息,名称和视图详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文