ASP.NET Can Be Annoying

168 words.

I’ve been working on a new ASP.NET app at work, which gives me a new opportunity to complain about ASP.NET.

One of my ongoing struggles with ASP.NET is figuring out the correct sequence that page and control events are fired in.  I find myself constantly stepping through code to figure out whether SelectedIndexChanged events happen before or after DataBind events or between the Load event and PreRender event or some other such nonsense.  It drives me crazy because it’s something I never have to do in PHP.  (Because you get to write your own page life cycle.)  It’s really tempting sometimes to just override Page.Render() and do everything myself.

And don’t get me started on UpdatePanels.  This is the second project in a row where I simply can’t get them to work right.  “AJAX is so simple in ASP.NET!” they said.  “Just drop an UpdatePanel in there and it just works!”  Yeah, right.  Take my advice and stick with jQuery or even hand-coded Javascript.  It’s much less painful.

Related

This page is a static archival copy of what was originally a WordPress post. It was converted from HTML to Markdown format before being built by Hugo. There may be formatting problems that I haven't addressed yet. There may be problems with missing or mangled images that I haven't fixed yet. There may have been comments on the original post, which I have archived, but I haven't quite worked out how to show them on the new site.

Sorry, new comments are disabled on older posts. This helps reduce spam. Active commenting almost always occurs within a day or two of new posts.