Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

page-lifecycle

Do I need to unsubscribe from (manually subscribed to) events in asp.net?

August 28, 2022 by Magenaut

Do the same best practis rules regarding subscribing/unsubscribing to events apply in asp.net?

Categories ASP.NET, Q&A Tags asp.net, events, garbage-collection, page-lifecycle Leave a comment

Asp.net “Global” variables

August 28, 2022 by Magenaut

I’m writing a page in ASP.NET and am having problems following the cycle of initialization on postbacks:

Categories ASP.NET, Q&A Tags .net, asp.net, page-lifecycle, postback Leave a comment

How to Execute Page_Load() in Page’s Base Class?

August 27, 2022 by Magenaut

I have the following PerformanceFactsheet.aspx.cs page class

Categories ASP.NET, Q&A Tags asp.net, c#, page-lifecycle Leave a comment

In ASP.Net, during which page lifecycle event does viewstate get loaded?

August 27, 2022 by Magenaut

I know it happens sometime before Load, but during what event exactly?

Categories ASP.NET, Q&A Tags asp.net, page-lifecycle, viewstate, webforms Leave a comment

Where should stuff be done in an ASP.NET page?

August 27, 2022 by Magenaut

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.

Categories ASP.NET, Q&A Tags asp.net, page-lifecycle Leave a comment

Add dynamic controls in ASP.NET, is there a difference between 1.1 and 2.0?

August 26, 2022 by Magenaut

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).

Categories ASP.NET, Q&A Tags asp.net, dynamic-controls, page-lifecycle Leave a comment

Check Session variable and Redirect to login page before page load

August 25, 2022 by Magenaut

How can I check a variable and redirect to another page before the page loads using ASP.NET?

Categories ASP.NET, Q&A Tags asp.net, c#, page-init, page-lifecycle, redirect Leave a comment

How to update page data after event handling?

August 24, 2022 by Magenaut

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.

Categories ASP.NET, Q&A Tags asp.net, event-handling, page-lifecycle Leave a comment

Dynamic Event Handler not Firing

August 24, 2022 by Magenaut

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.

Categories ASP.NET, Q&A Tags asp.net, dynamic-controls, event-handling, page-lifecycle, vb.net Leave a comment

Closing a conneciton in the “unload” method

August 24, 2022 by Magenaut

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);

Categories ASP.NET, Q&A Tags asp.net, c#, connection-pooling, database-connection, page-lifecycle Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress