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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:22:55+00:00 2026-05-12T21:22:55+00:00

A bit of background: I’m building an MVC app to store golf course data

  • 0

A bit of background:

I’m building an MVC app to store golf course data and have created a Create view
page for the courses. This contains a partial view of a scorecard that I am going to use for other things such as recording results etc. I’ve currently built the scorecard so it fires off jQuery triggers when it is edited. From which the course create has jQuery code bound to these events and populates hidden form inputs for each of the 18 holes.

Question:

I was wondering if I need to have a mass of hidden form inputs on my create page to store the fired values or if I can have a list in my view model that I can update somehow.

Any more elegant solutions than what I have at the moment would be helpful.

  • 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-12T21:22:55+00:00Added an answer on May 12, 2026 at 9:22 pm

    You could create a custom class like ScorecardFormViewModel and include the items you need as properties and have your View inherit ScorecardFormViewModel

    EDIT:

    public class ScoreCardFormViewModel {
    
    // Properties
    public List<ParValues> { get; private set; }
    
    public GolfCourse GolfCourse {get; private set;}
    
    public ScoreCardFormViewModel(int golfCourseId)
    {
        GolfCourse = SomeMethodToGetGolfCourseFromModel(golfCourseId);
        // Some way to populate ParValues
    }
    
    }
    

    I just created a list of ParValues, maybe an over simplification, but you could put as many properties as you wanted here

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

Sidebar

Related Questions

A bit of background: I am building an iPhone app with a complementary server
I'll start here with a little bit of background. We have an ASP.Net MVC
Good morning, A bit of background might help. I'm creating a very simple app
I have to run a bit of code in the background every one second,
A bit of background... I'm trying to create a custom auth backend and extend
A bit of background information: Inorder to read/write to SLE4442 memory cards, my app
First a bit of background: I have a WPF application, which is a GUI-front-end
So, for a bit of background : This class is created to accept and
This is an odd problem, so I have to provide a bit of background.
First a little bit of background: I have a REST service in WCF 4

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.