Do I need to unsubscribe from (manually subscribed to) events in asp.net?
Do the same best practis rules regarding subscribing/unsubscribing to events apply in asp.net?
Do the same best practis rules regarding subscribing/unsubscribing to events apply in asp.net?
I’m writing a page in ASP.NET and am having problems following the cycle of initialization on postbacks:
I have the following PerformanceFactsheet.aspx.cs page class
I know it happens sometime before Load, but during what event exactly?
I’m very new to ASP.NET and, after beating my head on a few problems, I’m wondering if I’m doing things wrong (I’ve got a bad habit of doing that). I’m interested in learning about how ASP.NET operates.
I am pretty sure back in the days of ASP.NET 1.0/1.1, controls created during runtime needs to be added before Page_Load event of the Page Lifecycle (i.e. inside Page_Init).
How can I check a variable and redirect to another page before the page loads using ASP.NET?
On Page_Init I create a table of dynamically created controls based on a couple of database tables. One of the controls is an ImageButton for moving an list item up the list. What this event handler does is to update the SortOrder column in the database for the affected items.
I want to create an amount of controls dynamically based on a number the user enters into a textbox. This part I have working fine, but I also need the dynamically created textboxes to have event handlers of their own, so the user can enter a number into them, and have more controls created.
I have inherited a web framework whereby the previous developer has opened and closed his database connections in the init/unload methods of the page life cycle. Essentially constructor is like this (simplified to demonstrate the point);