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

  • Home
  • SEARCH
  • 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 6014003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:37:45+00:00 2026-05-23T02:37:45+00:00

I am tring update a record and want to exclude one column from the

  • 0

I am tring update a record and want to exclude one column from the update, i have this field that is populated with GetDate() as a default value in sql, so when the update takes place i want this field to be left as it is,

 [ScaffoldColumn(false)]

    [Column] public DateTime RegisteredDate { get; set; }

Ive tried using both ScaffoldColumnFalse from dataannotaions and HiddenInput(DisplayValue = false) but when i try to save the changes an error is thrown

 sqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.

From what i understand this is thrown due to a null value being passed to the RegisterdDate field,

Ive also tried using bind Exclude in the ActionResult stub to no avail

 public ActionResult Edit([Bind(Exclude = "RegisteredDate")] Customer customer)

Anyone any ideas on where I am going wrong here?

Kind Regards

Liam

  • 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-23T02:37:45+00:00Added an answer on May 23, 2026 at 2:37 am

    Have a look at Steve Sandersons blog, Partial Validation in ASP.NET MVC 2. His approach is to validate only incoming values from the view. This may work in your case.

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

Sidebar

Related Questions

I'm trying to update a column in one table1 ('keyword') with data (from 'data')
I'm trying to return a record from LINQ2SQL as a JsonResult to update my
I am trying to update all records in a column so that they start
I am trying to update a field in a table with data from another
I am trying to update my table 1 with some field value from table
Just want to see if I understand this correctly. CNAME record specifies an alias,
I have an issue where inside a class I want to update or add
I am trying to update a column in my table which was last inserted.
I am trying to update a field of type spFieldUserValue, you know a, PeoplePicker.
So I'm dealing with a csv file that has missing values. What I want

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.