Asp.net Mvc3 ads some custom attributes like \"data-val-required\" on input elements to perform validation. I know all theory behind this, how it works.
What i want to k
I believe BeginForm method internally assigns a formcontext object to viewCotnext's property FormContext. If you do not want to use plain html form tags you have to do it manually like
<%
this.ViewContext.FormContext = new FormContext();
%>
and in razor it would probably be
@{
this.ViewContext.FormContext = new FormContext();
}