views:

140

answers:

1

Hi All,

How can i determine in a web server control (inherited from linkbutton) if an event handler is set for OnClick or OnCommand?

I rather not override the events and set variables... etc

Thanks all in advance

A: 
Inside Page_Load or after:

if (ctrl.OnClick != null)
{
    // ...
}
mjmarsh