When dealing with User Controls in the ASP.Net application, sometimes the post back to the code behind page does not happen as anticipated. For example, when you decide to bind a Control dynamically to the HTML templated and then assign an event handler to the Control bound, the postback always happens to the main page then transferred to the User Control code-behind, there are always tedious steps that have to happen. Sometimes this postbacks does not trigger the event handler of the Control and would end in the Page.Load() event. This becomes really hectic to debug when the User Control does not post to the intended code-behind class. Event Handler does not work as needed.
Write an Article