Just learned that you need to use a row’s DisplayIndex rather than its DataItemIndex when retrieving its DataKey value. Otherwise, stuff is not going to work with paging.
Not obvious. But I guess it makes sense.
DataItemIndex is the index of the row within the overall data set. DisplayIndex is the index of the row within [...]
One useful little control we wrote for ASP.NET is our BindOnPreRender control. It simply calls DataBind() on itself at PreRender.
Its utility may not be obvious. This is sort of related to my post on WebForms DataBinding. Binding is better. It lets us bind properties to objects in our markup, which helps reduce code-behind. I’m not [...]
We’re lucky we have an error handler in our web app that emails us about every single unhandled error, or we wouldn’t know about this one at all.
The dreaded “cannot use leading .. to exit …” error. If you do URL rewriting with ASP.NET, you probably see this a lot. If you don’t, it’s probably [...]
Binding. I’ve got a lot of feelings about ASP.Net databinding. Mostly bad. I think this is part of the reason people wanted to move to MVC. Databinding, validation, conversion, and persistence are all chained together and ultimately comprise the majority of any application. Really. If a platform doesn’t do databinding well, it will probably be [...]
I just want to talk for a moment about the things that are good about WebForms.
WebForms is a Component Framework
First of all, we have to acknowledge that WebForms is a component framework. Many people who are critical about ASP.NET WebForms are actually criticizing the whole component approach to web development. Others criticize component frameworks because [...]
Actually, it’s not a debate — it’s incredibly one-sided, which is the reason that I’m going to write a few blog posts to say:
Webforms doesn’t totally suck.
We recently chose it over ASP.NET MVC for a reason.
Part of the reason is that I and my team have had PLENTY of experience with MVC in Java and [...]