Skip to content

MVC Pattern in .net with c#

Shailesh

Asked Mar 27, 2007, 3:44 AM EDT1 answer
Share
LinkedInX
Hi 
  Is any body know the righ working of MVC pattern in .net with  c#. How to implement it with an example. If any body can explain with example I will be very thankful.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0
    In some ways, .NET doesn't do the MVC (Model View Controller) pattern as well as some would like.  There is still a tendency toward the old VB pattern of putting everything in the form including the controller.  Even the databinding model can be a bit rigid for MVC.  On the other hand, .NET is so flexible, it's easy enough to implement.  Just try your best to keep your FORMS clean.  Anotherwords, whenever you handle an event such as a button click or list item selection, make sure you call the code handling those events from a separate class (a document class).

    With the upcoming XAML architecture (WPF in .NET 3.0)  there will be more of a tendency to keep your presentation information separate.  I suspect this is part of the goal of XAML, to separate out the model and the view. 

    -Mike G
    0