S
sonic
I generate a button link control in following Manner.
Button b = new Button();
b.Click = MyEventHandler(...);
If i add this button to current control with:
this.Controls.Add( b );
it will render, and its clicked event will be triggered properly.
Unfortunately I do not have alot of control over where the button shows
up.
So I try to render it inside of protected override Render(...) event
with:
b.RenderControl( writer );
Now the button shows up where I want it to, but its click event never
triggers anymore.
Any ideas why rendering it manually cancels out its click event
association?
Button b = new Button();
b.Click = MyEventHandler(...);
If i add this button to current control with:
this.Controls.Add( b );
it will render, and its clicked event will be triggered properly.
Unfortunately I do not have alot of control over where the button shows
up.
So I try to render it inside of protected override Render(...) event
with:
b.RenderControl( writer );
Now the button shows up where I want it to, but its click event never
triggers anymore.
Any ideas why rendering it manually cancels out its click event
association?