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 324131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:05:44+00:00 2026-05-12T09:05:44+00:00

I have an MVC app I’m writing. There will be the need for multiple

  • 0

I have an MVC app I’m writing. There will be the need for multiple instances of the same page to be open, each accessing different records from a database, these record objects will also need to be passed through a flow of pages, before finally being updated.

What’s the best, and most correct, way of acheiving this – should/can I create a custom model binder that links to an object via it’s unique ID and then create each record-object in the session, updating them as I go through each one’s page flow and then finally calling the update method? Or is there a better way of dealing with this?

Cheers

MH

  • 1 1 Answer
  • 0 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-12T09:05:44+00:00Added an answer on May 12, 2026 at 9:05 am

    Technically, that would be possible, but I don’t think it is advisable. When you look at the signature of IModelBinder, you will have to jump through some hoops related to the ControllerContext if you want to be able to access the rest of your application’s context (such as how to dehydrate objects based on IDs).

    It’s possible, but so clunky that you should consider whether it’s the right approach. In my opinion, a ModelBinder’s responsibility is to map HTTP request data to strongly typed objects. Nothing more and nothing less – it is strictly a mapper, and trying to make it do more would be breaking the Single Responsibility Principle.

    It sounds to me like you need an Application Controller – basically, a class that orchestrates the Views and the state of the underlying Model. You can read more about the Application Controller design pattern in Patterns of Enterprise Application Architecture.

    Since a web application is inherently stateless, you will need a place to store the intermediate state of the application. Whether you use sessions or a custom durable store to do that depends on the application’s requirements and the general complexity of the intermediate data.

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

Sidebar

Ask A Question

Stats

  • Questions 154k
  • Answers 154k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The reason you get the "Object reference not set to… May 12, 2026 at 10:31 am
  • Editorial Team
    Editorial Team added an answer I asked a similar question the other day with regards… May 12, 2026 at 10:31 am
  • Editorial Team
    Editorial Team added an answer subquery solves all of this... $result = pg_prepare($dbconn, "query8", "SELECT… May 12, 2026 at 10:31 am

Related Questions

Firstly anyone else trying to get onto forum.hibernate.org. I have been trying for a
I have an mvc app developed and tested with Cassini. Deployed to my site
I have an ASP.NET MVC app and I want to add to each page
I have to preface this with the fact that I love jQuery as a
I have an asp.net mvc app running on a local iis website that is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.