Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4110058
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:53:04+00:00 2026-05-20T21:53:04+00:00

I am currently investigating the possibility to incorporate MVC into our existing WebForms framework.

  • 0

I am currently investigating the possibility to incorporate MVC into our existing WebForms framework. Currently we have the notion of “modules” like ThreadsModules and CreateMessageModule. The modules are just UserControls that are being loaded onto a page by the framework. On postback the ASP.NET WebForms parses the _EVENTTARGET and _EVENTARGUMENT fields and raises the appropriate event handlers (just like any other webforms page works).

In MVC, however, there are no controls and there is no postback. So the question is what’s there? Everywhere the notion of Model-View-Controller talks about a particular page, but I need modules. So I was thinking of making the modules consist of model-partial view-controller and creating a MasterController that will parse the request and call the appropriate module’s controller.

However with this approach there is still the problem of integrating different controllers into one page. For example on a page I have the ThreadsModule which contains a grid. The grid needs to sort and page so it needs its own controller. So right there I will have 2 nesting forms which both will submit whenever I click on “Sort” button in the grid. Obviously I could make the ThreadsModule controller deal with the grid’s sorting. But this means I will have to make every other module that has grids to know how to sort. A lot of redundancy and inefficiency.

Basically the main question is how to encapsulate complex logic that can be reused across controllers?

UPD: Let me give another scenario. You have a page with multiple forms on it. The forms post to different targets, possibly on different controllers. In what way could the user stay on the same page, after any particular form submits its request? Again, it is useful for encapsulating and reusing logic.

  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T21:53:05+00:00Added an answer on May 20, 2026 at 9:53 pm

    It sounds to me like you’re trying to shoehorn concepts created to address the specific requirements of WebForms into MVC.

    I would suggest that you do NOT try to apply WebForms architecture to MVC. It’s really its own philosophy and way of doing things. Just because something worked well in WebForms doesn’t mean it has to work the same way in MVC.

    Your architecture sounds like it’s poorly designed, and puts a lot of business logic in user controls. This is not the way to do things in MVC. Instead, you should refactor those controls into “services” that your controllers can call.

    EDIT:

    It’s important to remember that MVC is a presentation architecture, not an overall application architecture. MVC only concerns itself with how to present information to the user, and how to capture their input. All business rules, calculations, logic, should happen in business objects that have nothing to do with controllers, or views.. and only vaguely associated with models.

    You have complete control over the rendedered output. If you want to use multiple forms, with different targets, you can do so. Just set your action to whatever you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently investigating the possibility to use custom attributes derived from ActionFilterAttribute. I want
I am currently investigating MVC for a new project we are starting. So far
I have been investigating building web parts for sharepoint 2010 and currently have a
I'm investigating Zend Framework and currently stucked in counting resulting rows of sql query...
I am currently investigating a performance issue in an application and have highlighted the
we're currently investigating SVN at work - having escalated our practices to include a
I've currently investigating ways of improving our current c++ network hand-made serialization mechanism maintaining
I'm currently investigating ASP.NET MVC 2 and LINQ to SQL. It all looks pretty
I currently would like to expand my knowledge on Spring MVC so I am
We're currently investigating the use of OneJar in our application (for a number reasons),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.