在运行时将Linkbutton设置为标签 [英] Making Linkbutton as Label during Runtime

查看:95
本文介绍了在运行时将Linkbutton设置为标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我使用的Repeater包含5列,分别为Table1,Table1Count,Table2,Table2Count,DifferenceInCount.DifferenceInCount是Linkbutton列,它将在Count1和Count2之间给出区别.
我需要做的是,如果count差为0(零),我需要将相应的linkbutton设置为label字段.有人可以帮我吗...



I am using a Repeater which contains 5 columns which are Table1,Table1Count,Table2,Table2Count,DifferenceInCount.DifferenceInCount is the Linkbutton column where it will give the difference between Count1 and Count2.

What i need to do is if the count Difference is comes as 0(zero),the i need to make the corresponding linkbutton as label field.Can anyone please help me in doing this...

推荐答案

如果计数结果为零,则可以将链接按钮标记如下:-
linkbutton01.Enabled =假
然后如果计数大于零,
linkbutton01.Enabled = true.
希望借此可以解决您的问题.
If the count results in zero, you may mark your link-button as follows:-
linkbutton01.Enabled = false
And then if the count is more than zero,
linkbutton01.Enabled = true.
I hope by this, your problem can be resolved.


这篇关于在运行时将Linkbutton设置为标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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