This project is read-only.

View in Web form

Feb 1, 2012 at 3:20 PM


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?

Feb 1, 2012 at 5: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 10: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?