简体   繁体   中英

web user controls in asp.net Mvc 4 application just like web forms

How can we use web user controls in Asp.net MVC 4 the same way we use in ASP.net web forms application.
I didn't find any simple article on it yet

In MVC - there are not any built in controls like you are used to seeing in WebForms (DataGrid, BreadCrumb, etc). These WebForm controls relied on concepts that do not exist in the MVC framework such as ViewState and PostBack. There have been many discussions around the use of WebForms vs MVC, web controls and lack thereof, but this is not the place for those.

You can build your own (using partial views for instance) or look at the third party components ( Telerik ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM