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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:35:27+00:00 2026-05-27T10:35:27+00:00

I am trying to build a functionality where I need to a create a

  • 0

I am trying to build a functionality where I need to a create a candidate’s profile in our application. There are two steps/UI’s to create a candidate’s profile:

1 – Create template…where the user enters candidate’s information.

2 – Preview template…where the user will be shown a preview of how their profile would look like once they add the profile to our system.

I have already created the views to support these UI’s via a controller called “CandidateController” which contains few action methods:

1- [HttpGet] “Create” that returns a Create template.

[HttpGet]
public ViewResult Create()

2- [HttpPost] “Preview” that returns a Preview template.

 [HttpPost]
 public ActionResult Preview(ProfileViewModel viewModel)

Now what I need to implement is to have a button/link in the Create template that would call the action method [HttpPost] Preview in the controller.

Challenge
I am also wondering if there is a way that the model binder would load the ViewModel object for me if am able to call the HttpPost Preview action method from the first create template.

I am looking for a suggestion/help to how to best achieve this kind a functionality.

Any help will be deeply appreciated.

  • 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-27T10:35:28+00:00Added an answer on May 27, 2026 at 10:35 am

    Challenge I am also wondering if there is a way that the model binder
    would load the ViewModel object for me if am able to call the HttpPost
    Preview action method from the first create template.

    You could use either a standard form or an AJAX call to invoke the Preview POST action and pass all the property values of the view model then. All the values you pass in this request will be the values that will be bound by the default model binder. Here’s an article explaining how the default model binder expects the parameters to be named for more complex structure such as lists and dictionaries.

    Example with AJAX:

    $.ajax({
        url: '@Url.Action("Preview")',
        type: 'POST',
        data: { Prop1: 'value 1', Prop2: 'value 2' },
        success: function(result) {
            // TODO: do something with the result returned from the POST action
        }
    });
    

    If you don’t want to use AJAX you could use a standard form with hidden fields:

    @using (Html.BeginForm())
    {
        @Html.Hidden("Prop1", "value 1")
        @Html.Hidden("Prop2", "value 2")
        ...
        <button type="submit">Preview</button>
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build more generic query functionality into my application. What I'd like
I'm trying to build JPG upload functionality into our Windows Phone app. The server-side
I am trying to build a virtual conference framework which provides functionality for holding
I'm trying to build something akin to Facebook's Share functionality for my website. I've
Trying to build a GUI application in Java/Swing. I'm mainly used to painting GUIs
I'm currently trying to build a personal website to create a presence on the
I am trying to build the back button with functionality that on click of
I've been trying to integrate the jQuery UI Datepicker into our ASP.NET WebForms application.
I'm trying to build some functionality for a project, but I'm stuck with this:
I am trying to build my own zend module (.so) We have multiple functionality

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.