asp.net mvc 3 - Using webform master page in razor view -


i have tried implementing this, extension methods not working when rewrite them in vb. trying use corporate master page in mvc3 application. right have .master , .ascx page. confused on how show in razor view.

my .ascx page:

<%@ control language="vb" inherits="system.web.mvc.viewusercontrol" %>   <asp:content id="content" contentplaceholderid="contentarea" runat="server"> <div> hello world  </div> </asp:content> 

when run it, gives me error: content controls have top-level controls in content page or nested master page references master page.

i use _viewstart.vbhtmlto call on .ascx page.

trying hack webforms objects work mvc3 going cause trouble down road. redo file mvc3 layout using razor.

edit: added layout file tutorials:
making layout pages
understanding layout files
layouts , sections


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -