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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:29:35+00:00 2026-05-23T21:29:35+00:00

I am currently working on an ASP.NET MVC 3 app where I have a

  • 0

I am currently working on an ASP.NET MVC 3 app where I have a particular view that is setup like a wizard (using a jQuery plugin). Each of the wizard steps is part of a single form, where each “step” is split in to its own <div> element. I decided to create partial views for the contents of each “step”. I did this for a few reasons. One being that it keeps the code for each step neat and organized. The other being that it allows me to more easily/neatly include or exclude steps from the wizard on the server side.

Right now, my “main” view looks something like the following:

@using (Html.BeginForm)
{
    <div class="step" id="step1">
        @Html.Partial("Step1")
    </div>

    <div class="step" id="step2">
        @Html.Partial("Step2")
    </div>
}

I am wondering if doing something like this would be considered bad practice and if I should just consolidate the code for all “steps” in to a single view?

  • 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-23T21:29:36+00:00Added an answer on May 23, 2026 at 9:29 pm

    No, nothing inherently wrong with that approach.

    There’s a small performance overhead, but likely to be of no consequence.

    If it makes it easier for you to develop and maintain, feel free.

    Edit: If you’re worried about mapping sub-models, as we referred to in the comments, consider using ViewData.ModelMetadata.PropertyName in the partial view to derive the ID’s of the input controls.

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

Sidebar

Related Questions

In my ASP.net MVC App (using Razor views) I have a ProductDetails view. This
I am currently working on a project that consists of an ASP.NET MVC 2.0
I am working in ASP.NET MVC 3 application, I am using razor view. I
I have an asp.net MVC app in production that very seldom but very consistently
I'm trying to get an ASP.NET MVC app working... I should have known it
Background: I am working on an ASP.NET MVC app that has 3 partials (based
I have an ASP.NET MVC application that I'm working on. I've been developing it
I have a hybrid ASP.NET/MVC 2 application that is currently hosted on II6. I
I'm working on an ASP.NET MVC 3 app and it works fine when using
The Setup: I have updated an app from ASP.NET MVC 3 to ASP.NET MVC

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.