开发者

.NET MVC: How to use .NET controls with MVC?

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 开发者_JAVA百科I have no idea how this thing is gonna work with MVC.)

Thanks in advance


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.


Further to what @Jon said this one seems to be pretty popular.

uploadify

Also try this for a list of multi file upload plugins.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜