Element required on view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ParPar
    New Member
    • Aug 2011
    • 6

    Element required on view

    Is there any option to make an element in the view be required even if it's not in the model?

    (So I could write something like this:@Html.Validatio nMessageFor(... .) in the view.)

    This is not even a field: it's just an input of type='file'.

    Can I do something like this?

    Thanks in advance.
    Last edited by Frinavale; Sep 2 '11, 03:48 PM. Reason: Added code tags and format
Working...