How can I render a user control in asp.net mvc?
is my only option to use the mvctoolkit?
I am using mvc 2.0 now.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The concept of user controls in ASP.NET MVC are partials, which are shared views.
MVC Toolkit does seem to be the closest approach I’ve seen, but what’s wrong with using
RenderPartialinstead?Further:
In this article, David Ebbo (creator of T4MVC) discusses user controls in ASP.NET MVC. Have a look at this and see if anything in there might be useful to your situation.