Hi,
I have a custom control type that implements ITemplate and is added to a GridTemplateColumn. I have added an event handler to the literal control that is part of the custom control.
The first time the page loads, the event handler gets called. However, on Postback the event handler is not called.
Any ideas?
Thanks,
Dewang
I have a custom control type that implements ITemplate and is added to a GridTemplateColumn. I have added an event handler to the literal control that is part of the custom control.
| public void InstantiateIn(System.Web.UI.Control container) |
| { |
| System.Web.UI.LiteralControl c = new System.Web.UI.LiteralControl(); |
| c.DataBinding += new EventHandler(Button_DataBinding); |
The first time the page loads, the event handler gets called. However, on Postback the event handler is not called.
Any ideas?
Thanks,
Dewang