c# - Is good practice to create controls as partial views in .NET MVC5? -
i'm pretty new in mvc , planing something, i'm not sure practice or not. create ui controls partial views. example, have autocomplete control, have autocomplete partial views scripts needed , everything, , pass model through renderpartial?
so, hear comments?
mvc offers lot of options separate view code might confusing in begging. main 4 of them are:
- partial views
- @helper methods
- html helpers
- display/editor templates
i not go in details here because there lot of info them. example @helper methods vs html helpers vs partial views. or editor/display templates vs partial views.
for complicated controls autocomplete suggest use partial views or html helpers.
Comments
Post a Comment