在数据列表控件中找到链接按钮,并且单击其他链接按钮后可见true [英] Find link button in data list control and after clicking other link button visible true

查看:93
本文介绍了在数据列表控件中找到链接按钮,并且单击其他链接按钮后可见true的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在数据列表控件中的itemtemplate的帮助下为画廊绑定了数据.在一个项目模板中,有一个用于下一个上一个按钮的表格,而另一个项目模板中,具有绑定数据(图像).现在我想在页面加载事件中显示下一个"按钮为false,并且单击上一个按钮后,在数据列表中下一个"按钮应该为true.那么如何在单击事件中找到linkbutton(linkbutton).请给我建议.

预先感谢,
Narendra Kumar

Hi All,

I have bind data for gallery with the help of itemtemplate in datalist control. In one itemtemplate have take table for next previous button and another item template have bind data (image). and now i want to Next button visible false in page load event and after clicking the previous button, Next button should be visible true in datalist. So how to find linkbutton in click event(linkbutton). Please suggest me.

Thanks in advance,
Narendra Kumar

推荐答案

尝试一下,
try out this one,
LinkButton lb = this.FindControl("LinkButtonID") as LinkButton;


而这是您的页面.


Whereas this your Page..


这篇关于在数据列表控件中找到链接按钮,并且单击其他链接按钮后可见true的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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