asp.net mvc 2 multiple partial view

Posted by 303 on Stack Overflow See other posts from Stack Overflow or by 303
Published on 2010-05-07T19:07:40Z Indexed on 2010/05/07 19:18 UTC
Read the original article Hit count: 201

Filed under:
|
|
|

Hey Guys,

I have a contoller that renders 3 different views. But I also have a common part (div) for every view. I thought that I can create an UserControl with own controller and include that control on my views (New controller and view as controll).

How should I use that UserControl? Should it be a partial view? Or different approach - can I have multiple partial views on one page?

I've been searching the web for the last view days and haven't found working solution that suits me. Also I want to use Strongly Typed views/data.

Cheers

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc