0

I would like to create simple controls that can be Easily reused across applications. Is there a current set of best practices or patterns for creating such controls. Examples of such controls could be Paging, List or Grid display, etc...

I'm not looking to make controls with tons of options just really simple controls that I can add to my own library to speed up development of sites. I'm just not sure how to go about it with MVC.

Thanks!

2 Answers 2

1

The concept of controls is more appropriate to classic ASP.NET WebForms applications. In ASP.NET MVC action filters and helpers (using TagBuilder) are more commonly used for creating reusable parts. You may take a look at MVCContrib for many examples of Paging, List, Grid and other components.

Sign up to request clarification or add additional context in comments.

Comments

0

I think HtmlHelpers and UrlHelpers in their own assembly and probably javascript files (think jQuery plugins) are your best control-like levels of reuse across projects.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.