![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
Hey guys. I am learning how to write a custom web control and I am inheriting from System.Web.UI.WebControls.WebControl. I have created an instance of a Button class inside of this control and in the constructor of the control I have handled the Click event. When I click the button and it submits the page, the event doesn't fire. I want to be able to handle that click event and fire the parent controls click event so the developer using the control can handle appropriately. I am not sure what is stopping the event from firing. The function that receives the event isn't being executed. I then thought oh yeah I forgot to .Attributes.Add("runat", "server"); but that didn't make a difference. Any help would be greatly appreciated. Thanks and take care. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |