Form Building

Adding routes to a Form

Check out the Route building guide


EncType()

Sets the enctype attribute

@using (Html.BuildForm("Upload", "File").EncType(FormEncType.MultipartData).Begin()) {
    
}

creates this HTML:

<form action="/File/Upload" enctype="multipart/form-data">
</form>

Last edited Dec 21, 2011 at 6:24 AM by grcodemonkey, version 7

Comments

No comments yet.