I\'n new at this, so apologies if this isn\'t explanatory enough. I want to prepopulate a field in a form in asp.net mvc 3. This works;
@Html.TextBox(\"CompN
From your controller, if you pass a model initialized with default values using one of the View(...) method overloads that accepts a model object, these values will be used by the view when rendered. You won't need to use the @value = ... syntax.
View(...)
@value = ...