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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:43:34+00:00 2026-06-07T12:43:34+00:00

* Solved, see Update below I have a class with the two properties listed

  • 0

*Solved, see Update below

I have a class with the two properties listed below:

[HiddenInput(DisplayValue = false)]
public int ProductId { get; set; }

[Required(ErrorMessage = "Please enter a product name")]
public string Name { get; set; }

When I run the solution on one machine I do not see the EditorFor ProductId when I navigate to the associated page — When I run it on another machine (the same pull from github) I do see it (and am able to edit it). I do not want to be able to see it.

The only significant thing I think could be different on each machine is the actual database itself.

Why am I able to see my ProductId property editor on one machine but not on the other while using the same code?

Note

MVC renders the view differently on each machine (the generated HTML is different – this reflects the discrepancy above).

Update

Solved the problem, see my answer below.

  • 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-07T12:43:37+00:00Added an answer on June 7, 2026 at 12:43 pm

    Figured it out. . . kind of.

    Oddly enough, I had another problem elsewhere in the app after trying to move on for a while. That problem and MisterJames’ comments on the original question led me to this answer.

    To make things simple, I just uninstalled MVC4 from the machine that was giving me issues (I did not have MVC4 installed on the other machine) and both of my problems went away.

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

Sidebar

Related Questions

Problem solved, see below Question I'm working in Flex Builder 3 and I have
SOLVED: See my solution below! using aspx with C# code behind. I have the
SOLVED BELOW See below for solution I have a ListView with a custom adapter
UPDATE: SOLVED!!! Please see the answer I added below Does anyone know if there
Edit: I have solved this by myself. See my answer below I have set
Problem solved: Thanks guys, see my answer below. I have a website running in
UPDATE - No need to answer this now, I have solved below. Hi, I'm
Solved! See update below. We are porting a large C++ application to Android, and
UPDATE The issue is solved, all the code you can see works. Hello! I
(Problem solved now, see answers below) Hello, in my app I am trying to

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.