I am quite new t Umbraco and has just started learning this and am stumped by this error. When I try to use @Model.Name to out put model name I get follwoing error
The
best overloaded method match for
'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)'
has some invalid arguments
Please note that I am inheriting from Umbraco.Web.Mvc.UmbracoTemplatePage earlier on the page
Can not use @Model.Name in the template-plz help
I am quite new t Umbraco and has just started learning this and am stumped by this error. When I try to use @Model.Name to out put model name I get follwoing error
The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments
Please note that I am inheriting from Umbraco.Web.Mvc.UmbracoTemplatePage earlier on the page
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = "SW_Master.cshtml";
}
@Model.Name
Hi Manisha and welcome to Our!
Since you are using Mvc then try this one instead.
Or
Hope this helps you.
/Dennis
Thanks Heaps :-) can you point me to tutorials covering Razor syntax for MVC.
Hi Manisha
MVC documentation can be found here:
http://our.umbraco.org/documentation/Reference/Templating/Mvc
http://umbraco.com/follow-us/blog-archive/2012/10/30/getting-started-with-mvc-in-umbraco-410.aspx
http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/built-in-property-editors/
http://our.umbraco.org/projects/developer-tools/umbraco-v6-mvc-razor-cheatsheets
http://our.umbraco.org/wiki/reference/code-snippets/razor-snippets
I hope these links can help you learn the Razor syntax for MVC
/Dennis
Thanks :-)
is working on a reply...