在gridview中使用超链接显示表的数据 [英] Display Data of a Table using hyperlink in gridview

查看:56
本文介绍了在gridview中使用超链接显示表的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个数据库,其中存在id,name,description列.我正在使用gridview显示名称,而不是绑定列,而是在其中使用模板字段和链接按钮以将名称显示为超链接字段.我的想法是使用链接按钮的onclick属性,每当我单击名称时,我都只需要在另一个网格视图或表或该特定名称的详细信息视图中获取描述.
我是初学者,请帮助我.

Hi,

I have a database where id,name,description columns are present. I am taking a gridview to display the name and instead of bound columns i am taking template field and link button in that to display name as hyperlink field. my idea is to use the property of onclick of link button and whenever i click the name i need to get the description in another gridview or table or details view of that particular name only.
i am a beginner please help me.

推荐答案

看看这篇文章.它包含的内容比您需要了解和做的还要多:
可编辑的嵌套GridView(多合一) [
Have a look at this article. This contains more than you need to know and do:
Editable Nested GridView (All-in-One)[^]


这篇关于在gridview中使用超链接显示表的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆