asp.net中的listview行 [英] listview rows in asp.net

查看:70
本文介绍了asp.net中的listview行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在列表视图中访问链接按钮的标题(文本).

检查一下.
我在linkbutton的onclick事件上使用此功能.

How to access the caption (text) of linkbuttons in listview.

check this.
I am using this function on the onclick event of the linkbutton.

protected void linkfolder_click(object sender, EventArgs e)
{
   linkbutton l = (linkbutton)sender;
   string folder = l.text;
}


但这不起作用.

请提出一些建议.

我可以使用Listview1.findcontrol()方法吗?

请告诉我怎么做.


But it is not working.

Please suggest something.

Can i use Listview1.findcontrol() method.

Please tell me how.

推荐答案

不工作是什么意思?链接按钮没有引发事件吗?或链接按钮正在引发事件,但函数中的发送方参数不是链接按钮的类型.

如果目的有用,请参见此链接
http://forums.asp.net/t/1348251.aspx [
What do you mean by not working? Link button is not raising event? or link button is raising event but the sender parameter in the function is not type of Linkbutton.

See this link if it serves the purpose
http://forums.asp.net/t/1348251.aspx[^]

Thanks,
Hemant


这篇关于asp.net中的listview行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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