Copied to clipboard

Flag this post as spam?

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


  • Steve Kallal 9 posts 29 karma points
    Jan 12, 2012 @ 17:59
    Steve Kallal
    0

    Using Razor as a submit form?

    I have used Razor syntax on WebMatrix and a little on ASP.NET MVC and like it a lot.

    I have a project with a mobile page running jQuery Mobile. I have already prototyped a mobile page, in Razor syntax, that submits to itself. I prefer to avoid WebForms and the PostBack mechanism and just use Razor.

    I also want to do this in Umbraco 4.7.x, but it still uses master pages for templates. Can I have a master page with only a macro calling a Razor script? I'd like the Razor script to handle posts, using IsPost in the code section.

    I suppose the best way to do an all Razor page is in version 5. But I am hoping to do it in v 4.7.x, at least for now.

  • Sharon 16 posts 37 karma points
    Jan 13, 2012 @ 00:35
    Sharon
    0

    "Can I have a master page with only a macro calling a Razor script? "

    Yes you can do this in 4.7.x. You can also insert inline razor code directly into the template.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies