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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:31:50+00:00 2026-06-11T19:31:50+00:00

Whats best way for that on MVC 4 with Entity Framework. Example: We have

  • 0

Whats best way for that on MVC 4 with Entity Framework.

Example:

We have a form like that. Date will be same for all records. But Pax and Price will be change. And i dont want post that so many times. I need an ADD button for Pax and Price. And Date and Region will be same.

Pax: 1

Price: 500$

Date: DateTime.Now

Region: Location

And im using MVC model and Entity Framework

Im asking BEST way. I can do that with my old knowledges. Jquery append and Split at Form Behind my think. Thats true way?

  • 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-06-11T19:31:51+00:00Added an answer on June 11, 2026 at 7:31 pm

    I would use knockout and dynamically add form elements using it. Then you can do a single post as an Ienumerable of your type. See the example here http://blog.stevensanderson.com/2010/07/12/editing-a-variable-length-list-knockout-style/

    Knockout works great for scenarios like yours. You can encode the rules about same date etc in the add function of your viewmodel and make the form element non editable etc

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

Sidebar

Related Questions

First MVC project, just curious what the best way to manage this is. All
I have an existing website developped using ASP.NET MVC 3 and Entity Framework 4
What is the best way to manually generate Primary Keys in Entity Framework 4.1
I have a Domain that I generate using Entity Developer. This creates all of
General Info: ASP.NET MVC app using ADO.NET Entity Framework SQL Server 2005 I have
I have an Action method in an ASP.NET MVC Controller class that handles form
Whats the best way to hookup AJAX functionality to an existing Form using jQuery
What is the best way to ensure that a user who wants to install
What is the best way to check that I'm logged in to Yii from
What's the best way to tell my application that the file has been modified

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.