开发者

Accessing Datarepeater Button

I have added a button in datarepeater. If clicked once, it executes code and Button.text should change to Yes. Clicked again, it executes the op开发者_开发百科posite code and button.text should change to No. Codes are being executed (I am using flag variable) but Button.text is not changing.

How to change this text. I am simply trying Button.text="Yes" but probably I need to give some reference of the row no. too. How to do it?

Please advise. Thanks Furqan


Please check this question: Handle Button Click in WinForm DataRepeater C# Power Pack

Also: the CurrentItem property has a property named Controls that allows you to access its child controls like this: CurrentItem.Controls["OKButton"]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜