Today started with listening to a podcast on Typography from “This Developers Life”. It was fantastic and not at all what I expected. I ended up with an interesting lesson on who Bill Hill is. I spent some time exploring his website and blog and was pleasantly surprised by what I learned. It inspired me to spend a bit of time focusing on a personal website that I have had floating around in my head for a while. I decided I wanted to play around with fonts and found Google Web Fonts which gives me a simple place to start. Hopefully I can find some more time to focus on my site and eventually some day I will get it up and running.
Category: Uncategorized
PRG (Post, Redirect, Get) Pattern
What is the PRG Pattern?
While the PRG pattern isn’t new, there isn’t much out there on it for the .NET community. PRG stands for “Post/Redirect/Get”, I’ll let Wikipedia explain the rest:
instead of returning an HTML page directly, the POST operation returns a redirection command (using the HTTP 303 response code (sometimes 302) together with the HTTP “Location” response header), instructing the browser to load a different page using an HTTP GET request. The result page can then safely be bookmarked or reloaded without unexpected side effects.
While this could be accomplished in webforms, it would be much more difficult since the postback model hangs on pages posting to themselves to implement button clicks and the like. The MVC Framework on the other hand makes the implementation of the PRG pattern extremely easy.
See rest of article written by devlicio.us ….