View in Web form

Feb 1, 2012 at 2:20 PM

Hi,

I have a created a class library project which have Model, controller and Views using RazorGenerator.

I would like to display the view from dll in ASP.Net web form (aspx page) under DIV or IFrame.

Can you let me know how to achieve this?

Coordinator
Feb 1, 2012 at 4:13 PM

If you reference your classlibrary and register the default route in your Application_Start, you should be able to access your views using regular routes. Then it's simply a matter of specifying the right url in your iframe.

Feb 2, 2012 at 9:50 AM

Thanks for the quick reply.

I am able to achieve this by mentioning URL in the IFrame src.

Is there any other way to acheive this like RenderAction in ASPX etc?