简体   繁体   中英

rendering/re-usable content in asp.net mvc, what are my options?

In webforms, if I wanted to display a list of categories I would create a category control. this control would either take in parameters or analyze the current url and list the categories and breadcrumb as appropriate.

What options do I have with asp.net mvc?

Partial Views

You can find more View and UI Rendering techniques here:

Views and UI Rendering in MVC Applications

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