views:

692

answers:

2

I'm looking for information on now to use a web part in ASP.NET MVC. I've done this in WebForms, but the MVC model is very different.

Has anyone got any good links to good tutorials on getting it working?

Are there any issues to be wary off? etc.?

Thanks

+2  A: 

Hi,

I was wondering about the same question and found this on Scott Guthries blog:

Tuesday, November 13, 2007 5:51 PM by ScottGu Hi Timo,

What about Web Parts, are they supported ? Is it possible to develop Web Parts by using MVC ?

We don't support web parts within MVC views today. You can have a WebPart hosted inside of a standard ASP.NET WebForm that does an AJAX call to a MVC view to refresh its HTML content, and so you can integrate MVC with WebParts. But you can't host a webpartzone directly inside of a MVC View.

Hope this helps,

Scott

Maybe it can help?

OK, have to go with that then, Thanks heaps!
jwwishart
As a thought, do you have the link to that article?
jwwishart
A: 

Hi,

The comment was found in the Q&A section below Scott Guthries introduction to MVC on his blog:

http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx

unfortunately there is not much eles on Webparts/MVC there.