开发者

Accessing Datarepeater Button

开发者 https://www.devze.com 2023-02-05 09:57 出处:网络
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 t

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

精彩评论

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