thinking in geek tagline’s are so web2.0

Posts Tagged asp.net

[ControllerAction] and sane defaults

[Ed: For anyone who's living under a bush Microsoft have released a CTP of the new ASP.NET MVC framework. ]
I’m reluctant to get involved in this - but I feel like there’s another side to this story which is worth considering.
Since it was first presented at altnetconf - the decision to require users1 to have [...]


Multiple instances of memcached on win32

It seems like the win32 crowd is discovering memcached. I’ve got a couple of support queries about it over the last month or two and I thought I’d post an interesting one here:
“How can you run multiple instances of memcached on a single machine?”
There’s a couple of reasons why you’d want to do this. [...]


ASP.NET MVC

I got a chance over the weekend to watch the videos from altnetconf on the new Microsoft ASP.NET MVC framework. It’s a really exciting development. Anyway - as I’ve listened I’ve got myself a list of questions about features - I figured I’d put them here so I can see how they get on.

In views [...]


String Manipulation DSL’s

Mats comments on my previous post:
“But I guess what I’m saying is that the code for inserting that string using just strings may look even worse when you come back to look at it a week later…”
If your thinking that I’m talking about code like:
StringBuilder sb = new StringBuilder();
sb.Append(”xxx - yyy [somevar] zzz”);
Response.Write(sb.ToString().Replace(”[somevar]“,”somevalue”));
Then I’d agree. [...]


WebForms hurt me good…

Today I spent a long time trying to add a control to the Page.Controls collection from a MasterPage. Short version: without writing a(nother) IHttpModule which hooks Page_PreLoad and fires off an event of it’s own on the MasterPage. You can’t. (unless I’m missing something).
Another classic example of WebForms being too complicated for it’s own good.
In [...]


SoC in WebForms

Scott Bellware makes a brillant comment on Hammett’s weblog:
ASP .NET templated controls did almost nothing to encourage separation of orthogonal concerns. It simply ended up separating concerns that aren’t separate concerns.
Pure Genius - this summarises an entire field of criticism (e.g. [1][2]). The whole issue with the OnRowDataBound/FindControl() style of programming is that things which [...]


Server.Transfer does not run ASP.NET pipeline

Things I’ve learnt today: One.
What I’ve learnt: If you use the convenient (if old school) Server.Transfer method to render a different page to a client then you need to be aware that ASP.NET pipeline events1 will not run. You know - BeginRequest, AuthenticateRequest - unimportant things like that.
Basically - nothing that happens in Global.asax, [...]


BackgroundMotion code == Great

Note: This is a review of the recently release BackgroundMotion source code and developer guidance. Full disclosure – I used to work with Jeremy and consider him a friend.

I finally made some time today to sit down and browse through the source code for BackgroundMotion. For those of you who haven’t come across this project [...]


You know you’re having a bad day when…

You walk into the office and get told that you need to drop everything you were going to be working on because there’s a recurring problem on the production servers. For the last few days we’ve been experiencing a 100% CPU utilization on the w3wp.exe (the asp.net worker) process. Killing it off will fix the [...]


FormsAuthentication AppPool restarts and machineKeys

This seems like a pretty common problem but I’m documenting this here so I can point people to it.
The symptoms are that people are being logged out before the timeout that you set on the FormsAuthentication cookie. For example: You set the cookie timeout to 1 hour - but people are logged out after 20 minutes. [...]