4
In Web Forms we have UserControl
. These controls have a code-Behind and a layout. They can be used in different projects/solutions without depending on other things.
I want to create a control that displays various elements and some links/buttons that "trigger an event". I do not want this control to be linked to my site, I want to be able to reuse it in other websites.
What is the equivalent in MVC? It is possible to compile the Controller
and the View
in a DLL and use in another project?
Welcome Rodrigo. As a Q&A site, what matters are the questions and answers that are contained here. Relevant information posted here will be useful for indexing searchers so that others will find the content in the future. Also when the answer has basically only one link, it may become outdated and in the future no longer contain anything relevant to this question or even disappear. In addition, we are discussing this type of answer here: http://meta.answall.com/questions/42/queremos-respostas-que-contenham-somente-links
– Maniero