Frictionless data persistence in ASP.NET WebForms
Sometimes you come across a riff that really strikes a chord; for me, this happened when I read an older article demonstrating using attributes to declare where fields on an ASP.NET page persist; in the Application store, Context, or ViewState. I think the value of this approach is that it allows a developer to treat their Page and UserControl members as plain properties, and then declare how those properties will persist without having to write implementation-specific code. Even at its most elegant, saving a value to one of the many persistent targets might look something like this:
public int Foo
{…
Continue reading "Frictionless data persistence in ASP.NET WebForms" »


Socialized