SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Is MVC Applicable for .NET?

Latest post 11-22-2005 9:32 AM by weehyong. 5 replies.
  • 10-05-2005 12:06 PM

    Is MVC Applicable for .NET?

    Hi there,

    I like to solicit some feedbacks on MVC within context of ASP.NET.   My observations says that many still prefer to code their aspx pages as stand-alone pages, with html links to other pages hard-coded within these pages. 

    An alternative is of course to use a Front Controller pattern, or an MVC framework to overcome this.  One example is NMaverick (a port from java) and UIP App Block. However, this usually require much up front architectural codes or framework to work.

    In the J2EE world, Struts is almost a requirement in any enterprise level application.  I was a fan of Struts, and is wondering why there isn't a port of this to .NET.  Is it becoz it is not applicable? Maybe the benefit does not justify the effort?  If there is a MVC framework available, would you consider using it in your projects? What are you factors of considerations then: ease of use, maintenability of your codes etc.

    Thanks.

    Knowledge, Hardwork, Patience...
  • 10-05-2005 12:43 PM In reply to

    Re: Is MVC Applicable for .NET?

  • 11-21-2005 11:25 PM In reply to

    Re: Is MVC Applicable for .NET?

     MaungMaung wrote:

    http://msdn.microsoft.com/library/default.asp?url=/library/enus/dnpatterns/html/ImpMVCinASP.asp

    When I first tried to find how to implement MVC in ASP.NET, I read that article and many doubts started floating in my mind. Initially, I had doubts about how MVC is loosy implemented using code behind. I even went to an extent of implementing what I considered a MVC design pattern on ASP.NET, by designing controllers to handle every specific event request.

    For e.g. for a page load event, I devised a controller class (e.g. LoadXXXController.cs) which is inherited from my abstract Controller class with a simple method called Action. Thus, in the page_load event, it simply called objLoadXXXController.Action ().

    It's really neat and easy to code, that is if you have a minimum team size of 3-4 person. Of cos, it gets rather confusing during debugging, as there are so many possible controllers behind each .aspx page.

    microlau Blog: http://community.sgdotnet.org/blogs/microlau

  • 11-22-2005 8:10 AM In reply to

    Re: Is MVC Applicable for .NET?

    Actually, if u think abt it.. if you use WF, it is very similar to a MVC model. Big Smile [:D]
  • 11-22-2005 9:28 AM In reply to

    Re: Is MVC Applicable for .NET?

    Wee Hyong,

    It's WF.

    Software development made easy with Paladin RAD Framework. Save some trees, use Stickies.NET
  • 11-22-2005 9:32 AM In reply to

    Re: Is MVC Applicable for .NET?

     Firedancer wrote:

    Wee Hyong,

    It's WF.

    FD,

    Embarrassed [:$] hahaha.. old term of reference is hard to change... heheheh..

Page 1 of 1 (6 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems