Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jytte Madsen 11 posts 31 karma points
    Jun 06, 2013 @ 19:45
    Jytte Madsen
    0

    How to safely change from Webform to MVC

    After having acces to umbraco.tv I started from the beginningSå I made make masterpage-templates with XSLT.Then I found out that it was easier to use Razor macros but the videos seamed to use a number of different syntaxes.And now I found out that I should be using MVC instead of webforms.So my question now isif I change<defaultRenderingEngine>Webforms</defaultRenderingEngine>to<defaultRenderingEngine>MVC</defaultRenderingEngine>how do I make alle my many templates work with this change?Is it enough to use the "umbraco masterpages to views conversion chat sheet" ?and will my macros still work?

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jun 07, 2013 @ 07:58
    Dave Woestenborghs
    0

    Normally all your macro's will keep working when switching to MVC. The only exception are Usercontrol macros that depend on postbacks.

  • Jytte Madsen 11 posts 31 karma points
    Jun 07, 2013 @ 09:54
    Jytte Madsen
    0

    If I don´t make all the changes in the templates (according to the umbraco masterpages to views convversion sheat sheet") correct - will I risk a broken system or just yellow screens easy to fix?

  • Jytte Madsen 11 posts 31 karma points
    Jun 08, 2013 @ 23:31
    Jytte Madsen
    0

    Now I tryed and I´m getting a yellow page saying

    Navnet 'Section' findes ikke i den aktuelle sammenhæng

    in the line

    @Section Head{

    ...

    }

    According to the cheatcheat I'm supose to use this instead of

    <asp:content contentplaceholderid="Head">
    ...
    </asp:content>

    but it doesn´t seem to reconize 'Section'

    Can anybody help?

     

     

Please Sign in or register to post replies

Write your reply to:

Draft