views:

174

answers:

1

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.

A: 

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 RenderPartial instead?

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.

Dan Atkinson
Every day again and again I see how extremely powerful RenderPartial() and RenderAction() helpers are. You just have to know when to use one over the another. So I agree with Dan 100%.
mare
I think your answer could be rephrased to not include a question.
Sailing Judo
The question was intended to create feedback in the hopes of clarifying the OP's question. The use of RenderPartial seems to be something that Blankman may have missed.
Dan Atkinson