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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:50:57+00:00 2026-06-10T18:50:57+00:00

Hi I’m working on a solution where I have two or more views that

  • 0

Hi I’m working on a solution where I have two or more views that use the same model to display , edit and create.

I’ve looked in to partial views because I thought I could reuse most of the view in all of them.

now my problem lies in that I’m combining more than one partial view in the parent view and are looking to make sure that I get the post back data from all the partials in to the parent, so that I can submit or change the underlying model.

this is how I call the partials:

@using (@Html.BeginForm())
{
     @Html.Partial("Person",Model.PersonDetails)
     @Html.Partial("Employment", Model)

     @Html.Action("Save", "Employee")
     @Html.Action("Create", "Employee")
     @Html.Action("Cancel", "Employee")
}

now the individual Partials contain a lot of editorfor dropdownlistfor labelfor and so on.
my question is this the correct way to reuse or is there a better and safer way to go since I’ve read and heard that it could be difficult to impossible to get the

EDIT:
I’ve been working a little further because of some unrelated problems I’ve changed the Actions to inputs like this:

  <input type="submit" value="Gem" name="submitType" />
<input type="button" value="Anullere" onclick="location.href='@Url.Action("Cancel", "Employee")'" />
<input type="submit" value="Send" name="submitType" />

Edit: I’ve added another change since last I was made aware that my Send button wouldn’t send data as Post data so I changed it to be a submit button. and gave it a name to both my submit buttons.

  • 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-10T18:50:58+00:00Added an answer on June 10, 2026 at 6:50 pm

    Of course you can gather data from partial views and send them as postback data to the action which corresponds to the parent view. In your case you have to make sure that all the model fields are included in you main form for which I suppose you are making a submit. When a submit is triggered all the values from your input/select/textarea fields are collected serialized and attached to the request and on the server side all this data will be mapped to your model/action parameters which corresponds to your action.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.