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.
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.
"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.
is working on a reply...