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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:57:58+00:00 2026-06-09T08:57:58+00:00

I created a View based on a strongly typed model class in my MVC4

  • 0

I created a View based on a strongly typed model class in my MVC4 project and it all worked well. However I had to add a bunch of fields to the Model class and now I want the View to reflect that. Originally all the fields were created automatically for me when I selected the strogly typed class.

I know I could manually go and add the new HTML helper fields, but I was wondering if there was some way to ‘Update’ the View from it’s bound model class (i.e. some link in the IDE like “Refresh View” or something”).

I also know I could delete the current View and have it re-created but I was wondering if it was possible with a bit less brute force in case I had made unrelated customizations that I didn’t want wiped out.

Thanks!

  • 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-09T08:58:00+00:00Added an answer on June 9, 2026 at 8:58 am

    If you use EditorForModel() or DisplayForModel() in your view, they will update for free when you make changes to your model.

    Here’s the link to Brad Wilson’s blog post that I’ve found super useful. It’s written for MVC2, but as far as I know, everything still applies in MVC3.

    Also, a particular data annotation that is really handy when using EditorForModel() is:

    [ScaffoldColumns(false)] //for properties that you don't want to display, but still need their values to post to the server(like ID's and such)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a strongly typed View class that all my UserControls derive from. It
I'm attempting to create a strongly-typed view based on a class from another assembly.
I'm looking to set the <body> class as well based on the view. I've
I've created a view based application and have connected all of my buttons through
I created a View-Based project in Xcode, but I find no Localizeable.strings file for
When I'm adding a new strongly-typed view to an ASP.NET MVC project, I can
i created a view based application. All UI control's i created thorough code.But view
So, right now I had created a view-based application with 8 different views. I
I created a view based app. In a view Controller class I created a
Just created a new project in Xcode (View based), and tried creating a button

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.