Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Guys,
I am using Umbraco 7.1.6 version for my project.
I have created one page called login.cshtml in Views -> Partials.
Now I will have to create a macro and call that macro in the content page.
I have tried to create macro and gave login.cshtml file name in Razor script. but it is not working.
can anyone help me to create a macro with .cshtml file and call it in content page ?
Thanks, Priya
I am quite new to Umbraco. Its really urgent task for me. Can anybody please help me to resolve above problem ?
Here you can find documentation on working with views and macros : http://our.umbraco.org/documentation/Reference/Templating/Macros/Partial-View-Macros/
Then when you have your macro view in place you can just call
@Html.Partial("Login")
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to call partial view file into macro ?
Hi Guys,
I am using Umbraco 7.1.6 version for my project.
I have created one page called login.cshtml in Views -> Partials.
Now I will have to create a macro and call that macro in the content page.
I have tried to create macro and gave login.cshtml file name in Razor script. but it is not working.
can anyone help me to create a macro with .cshtml file and call it in content page ?
Thanks, Priya
Hi Guys,
I am quite new to Umbraco. Its really urgent task for me. Can anybody please help me to resolve above problem ?
Thanks, Priya
Here you can find documentation on working with views and macros : http://our.umbraco.org/documentation/Reference/Templating/Macros/Partial-View-Macros/
Then when you have your macro view in place you can just call
@Html.Partial("Login")
is working on a reply...