Home Contact

X

Coder, not artist.

News

All code on here is free, but as a consequence it's up to you to check it, ha! If you have any questions, please use the contact button!

Twitter












Archives

Post Categories

Image Galleries

Syndication:

Comprehensive redesigns

So, last night I realised that I’d made some bad decisions with the database, structure and naming, so… I’ve now refactored it all, and I’m feeling… hmmm… meh about it. I suspect I will redo it all later, but for now it will do….

I’ve also come to the conclusion that I was maybe trying too much for the initial release, so as a consequence I have removed one part of the project… (which, by-the-by, I intend to have published in a month or so – and yes Andy, that is one month longer than I mentioned to you in that email :))

@Html.DisplayFor()

I find myself using DisplayFor a lot at the moment, is this correct? I mean – it works, but is that really only for forms? Do I need to use it? Should I use it?


Wednesday, November 9, 2011 7:23 AM

Feedback

# re: Comprehensive redesigns

Well, DisplayFor is essentially geared up for model properties, but the reality is it could be used to generate a display template for anything, the whole model etc.

Typically though, I'd recommend using it purely for form items, and stick to PartiViews for anything more complex/reusable. 11/17/2011 7:20 AM | Matthew Abbott

Post A Comment
Title:
Name:
Email:
Comment:
Verification: