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

  • SEARCH
  • Home
  • 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 6112041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:41:59+00:00 2026-05-23T14:41:59+00:00

I have a very large 60+ question form that the user can start to

  • 0

I have a very large 60+ question form that the user can start to fill, save at any point and leave it in hold. The form can be reloaded from the database and completed any time and then close it.

I have the following model:

public class Questionnaire{

  [Required]
  public string Question1 { get; set; }

  [Required]
  [Range(1, 10)]
  public int Quesiton2 { get; set; }

  public string Question3 {get;set}
}

I need to partially validate my model when the user decides to save the form and perform a full validation including the validation of the required fileds when the user chose to close the form.

what is the best way to implement it ?

  • 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-23T14:42:00+00:00Added an answer on May 23, 2026 at 2:42 pm

    Its not totally clear from your question / example exactly what you need, but I have found generally that splitting up my View Models in MVC is the best way to approach this kind of thing.

    i.e. split up your entity into parts, each of which can be validated on its own.

    Then use partial views / custom editor templates to provide the UI components for each of these.

    Then you can either combine these components in one form when needed, or provide separate forms on same page, multi page wizards, or single page progressive AJAX wizards, or whatever you want) as needed.

    Keeps things DRY and simple.

    Key is to not be afraid to add the extra layer of View Models when needed, to bring your data objects in line with the requirements of your UI.

    Don’t be constrained by your business objects / entities when you specifically need to be free of them – its easy enough to put the parts of a business object back together from constituent View Model pieces.

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

Sidebar

Related Questions

Quick question: If I have a very large function/sub in a class that is
I have a very large code base that contains extensive unit tests (using CppUnit).
I have a very large file that looks like this (see below). I have
I have a very large codebase (read: thousands of modules) that has code shared
I have a very large query that follows the format below: select ... from
I have a very large possible data set that I am trying to visualize
I have a very large array of doubles that I am using a disk-based
We have a very large GWT project that results in a monolithic app about
I have a very large XML file that I need to parse so I
I have a very large SELECT stored procedure that has multiple return columns and

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.