0

I would like to know if is possible to set a default value for an attribute on my class in MVC asp.net 3.

At the moment I'm using this:

[DataType(DataType.DateTime)] 
Samuel Parkinson
  • 2,992
  • 1
  • 27
  • 38
GibboK
  • 71,848
  • 143
  • 435
  • 658

1 Answers1

1

Maybe what you want is here: How to set a default value with Html.TextBoxFor?

Community
  • 1
  • 1