Implementing MVC Pattern in an existing project

Last post 01-16-2008 4:41 PM by yaip. 8 replies.

Sort Posts:

  • Implementing MVC Pattern in an existing project

    01-13-2008, 5:46 PM
    • Contributor
      4,773 point Contributor
    • yaip
    • Member since 10-27-2003, 10:29 AM
    • Los Angeles, CA
    • Posts 1,145

    Is it possible to implement MVC pattern in an existing project? If yes, what are the steps involved?

    Thanks
    I love computers because: MY WISH IS THEIR COMMAND :)

    <Website>
    <Gadget>
  • Re: Implementing MVC Pattern in an existing project

    01-14-2008, 1:12 AM
    • Member
      176 point Member
    • hhariri
    • Member since 12-10-2007, 10:07 AM
    • Posts 70

    Your existing project uses WebForms with CodeBehind for event handling I assume, even though it has an MVC "approach"? Although you can use WebForms and server-side controls in ASP.NET MVC  the whole concept of postbacks and event handling disappears, so you can't really do a direct port, no. I also don't favour using server-side controls even though you still can.

    --
    http://hadihariri.com
    http://twitter.com/hhariri
  • Re: Implementing MVC Pattern in an existing project

    01-14-2008, 2:21 AM
    • Contributor
      4,773 point Contributor
    • yaip
    • Member since 10-27-2003, 10:29 AM
    • Los Angeles, CA
    • Posts 1,145

    hhariri:

    I also don't favour using server-side controls even though you still can.

    What else would you recommend? Do you have a specific "client-side controls only" library in mind?

    Thanks
    I love computers because: MY WISH IS THEIR COMMAND :)

    <Website>
    <Gadget>
  • Re: Implementing MVC Pattern in an existing project

    01-14-2008, 7:20 PM
    • Member
      176 point Member
    • hhariri
    • Member since 12-10-2007, 10:07 AM
    • Posts 70
    Look at the MVC control toolkit. He has helper classes. Also you can use a whole bunch of JS controls like those provided by jQuery or ExtJS
    --
    http://hadihariri.com
    http://twitter.com/hhariri
  • Re: Implementing MVC Pattern in an existing project

    01-14-2008, 7:41 PM
    • Contributor
      4,773 point Contributor
    • yaip
    • Member since 10-27-2003, 10:29 AM
    • Los Angeles, CA
    • Posts 1,145

     That bringsup one more question. jQuery or ExtJS? Which one do you prefer?

    Thanks
    I love computers because: MY WISH IS THEIR COMMAND :)

    <Website>
    <Gadget>
  • Re: Implementing MVC Pattern in an existing project

    01-14-2008, 7:52 PM
    • Member
      176 point Member
    • hhariri
    • Member since 12-10-2007, 10:07 AM
    • Posts 70

    I like both :). Although I'm currently using jQuery more. Obviously you have the licensing advantage with jQuery and there's also a wealth of plugins available.  

    --
    http://hadihariri.com
    http://twitter.com/hhariri
  • Re: Implementing MVC Pattern in an existing project

    01-14-2008, 7:58 PM
    • Contributor
      4,773 point Contributor
    • yaip
    • Member since 10-27-2003, 10:29 AM
    • Los Angeles, CA
    • Posts 1,145

     Have not looked at the licensing but I assume that jQuery is easier to deploy in production than ExtJS.

    Thanks
    I love computers because: MY WISH IS THEIR COMMAND :)

    <Website>
    <Gadget>
  • Re: Implementing MVC Pattern in an existing project

    01-16-2008, 11:05 AM
    • Member
      36 point Member
    • lazycoder
    • Member since 05-01-2007, 11:59 PM
    • Posts 13
    yaip:
    That bringsup one more question. jQuery or ExtJS? Which one do you prefer?

    YUI. Although it's light on widgets so I often use the ExtJS library with the YUI extension.

  • Re: Implementing MVC Pattern in an existing project

    01-16-2008, 4:41 PM
    • Contributor
      4,773 point Contributor
    • yaip
    • Member since 10-27-2003, 10:29 AM
    • Los Angeles, CA
    • Posts 1,145

    Do I always have to point to http://yui.yahooapis.com/ to get  javascript files?

     

    Thanks
    I love computers because: MY WISH IS THEIR COMMAND :)

    <Website>
    <Gadget>
Page 1 of 1 (9 items)
Microsoft Communities