23 Mar, 2009 by Robert Muehsig
Webdevelopment with Visual Studio is really easy – just hit F5 and you jump into the debugger. VS use (as default) the built-in "ASP.NET Development Server" called "Cassini". But there are some pitfalls if you use this server, because the behavior of the IIS and Cassini are sometimes a bit different and the dev server is much slower! The good news: With few clicks you can debug and deploy your application right on IIS7 (on Vista/Server 2008).
Read the rest of this entry »
25 Feb, 2009 by Robert Muehsig
In my last blogpost I talked about different cloud computing providers, like Google, Amazon and Microsoft.
Today I want to describe Windows Azure more and show you how to use the Windows Azure CTP and how to publish a "Hello World" app in the "cloud".
Read the rest of this entry »
25 Nov, 2008 by Robert Muehsig
A while ago I blogged about some ASP.NET MVC stuff, but why should I (and you) care about ASP.NET MVC?
ASP.NET MVC is a great and extensible framework for building web applications and is a alternative to the ASP.NET WebForms model.
Tell me more about "MVC"!
MVC stands for "Model-View-Controller", which is a very old (but still very useful) design pattern. This design pattern will split your application in 3 different parts ("model", "view", "controller"). "Seperation of concern" is one of it´s main benefits.
Short description of these parts:
- "Model": Represents your application data/model and has no(!) business logic
- "View": Just display the given viewdata (this could be a normal HTML page or JSON/RSS data)
- "Controller": The controller represents the business logic and create the view data and send it to a view.
A good example of an MVC application is the web browser.
What is so "bad" about ASP.NET WebForms?
ASP.NET WebForms include many abstractions for the web development. If you are a WinForms developer, you will feel comfortable with it, but if you started with PHP/JSP or just pure HTML and Javascript you will feel very uncomfortable.
The "viewstate" is one feature to hide the stateless nature of HTML, but it can make your web application very slow and makes you crazy. The "WebForms" model include a very complex lifecycle and it´s important to understand this to work with ASP.NET WebForms.
In my opinion it is too complex and the framework should embrace the nature of HTTP and don´t hide it.
Disclaimer: If you feel comfortable with WebForms, you have no reason to change to MVC – MVC is only on option.
What are the benefits of ASP.NET MVC
MVC is a very testable framework and you get full control of the rendering process. You can add functionality if you want, because MVC is very extensible and you can create a clean, DRY, testable web application.
Phil Haack (the program manager of ASP.NET MVC) did a great presentation at the PDC.
Things that you´ll maybe missing in MVC
Many ASP.NET controls use the postback-functionality. This function will not work well together with the MVC framework. Phil Haack did also 2 podcasts on HerdingCode and tell some thought about "the control story in MVC":
Part 1
Part 2
If you have questions, please add a comment (and if my english really suck please let me know
). This blogpost should only provide basics – other posts are planned.
11 Apr, 2008 by Robert Muehsig
I`m currently working on a ASP.NET MVC sample website and look around for nice helper or implementations on Codeplex. Here is my (small) list:
Troy Goode´s ASP.NET Membership implementation in MVC – (i should have published my MVC Membership Version on Codeplex and write an english blog sooner
)
>> License
"Never trust user input" – validation is very important – this is intresting way with ActionFilters and jQuery.
>> License
4 new Viewengines, Code Snippets, Extensions and so on…
>> License
And (of course) the ultimativ mvc demo projekt: Kigg (License)
Do you know any other nice "AddIns"/Implementations for the MVC Stuff?