开发者

LinkButton Clicked OnPreRender

开发者 https://www.devze.com 2023-01-13 15:08 出处:网络
I Have a LinkButton when clicked I want to preform an operation inside the OnPreRender method. So how would I kno开发者_如何学运维w if that LinkButton was clicked?

I Have a LinkButton when clicked I want to preform an operation inside the OnPreRender method.

So how would I kno开发者_如何学运维w if that LinkButton was clicked?

Say my LinkButton's name is lnkbtn1.

Thanks in advance.

Baher.


Your button's Clicked event would already have been called by the time you get to PreRender, so maybe use the Click event to set a private boolean property on your control to indicate whether the button was clicked, which you can then check later in PreRender.

0

精彩评论

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