Reputation: 29484
I am very new to MVC.
I've been learning to use plain HTML or HtmlHelpers, eg. for textbox, and get the value back in the Controller using Request.Form.
But how do I use .NET controls with MVC? (eg. FileUpload)
(The reason I ask is I am trying to use a custom control for uploading multiple files - it's Flajaxian File Uploader, if anyone knows about it.
It works with webforms, but I have no idea how this thing is gonna work with MVC.)
Thanks in advance
Upvotes: 1
Views: 702
Reputation: 22760
Further to what @Jon said this one seems to be pretty popular.
Also try this for a list of multi file upload plugins.
Upvotes: 2
Reputation: 95432
You won't be able to use regular ASP.NET controls on MVC, because all of these are dependent on the ASP.NET Page Lifecycle, which MVC explicitly avoids.
Your best bet is to check out various jQuery controls and use those for your web application.
Upvotes: 6