• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Using MVC How Do You Setup a Partial View?

I am coding a project in C# and MVC.  I need to know the best way to setup a partial view I need for a user input form.


1 Solution
Kyle AbrahamsSenior .Net DeveloperCommented:
The project I'm working on has partial views in a shared folder.

From there it specifies a model:
@model MyModel.CustomerIndexViewModel

Adn then a field set;
<fieldset style="width: 660px;">
    <legend>Filter Customer Listing</legend>
    <table border="0" cellspacing="0" cellpadding="0">
            <td style="vertical-align: top;">
                        @Html.LabelFor(m => m.CustomerId)
                        @Html.EditorFor(m => m.CustomerId)
                        @Html.ValidationMessageFor(m => m.CustomerId)
käµfm³d 👽Commented:
What do you mean by "setup?"
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now