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
hello
can we call a razor script inside another razor script? If yes, then how to do that?
Yes, it's quite easy in fact. You can do it by calling the RenderPage method:
@RenderPage("~/macroScripts/scriptYouWantToRun.cshtml")
If you'd like to pass parameters to it you could use Page properties:
Page.NewsItem = Model.newsItem;
Hope that helps!
Hi Douglas,
I have posted the same question please have a look.
http://our.umbraco.org/forum/developers/razor/28482-Render-Control-on-cshtml-page
Please help this is really urgent.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
calling razor script
hello
can we call a razor script inside another razor script? If yes, then how to do that?
Yes, it's quite easy in fact. You can do it by calling the RenderPage method:
If you'd like to pass parameters to it you could use Page properties:
Hope that helps!
Hi Douglas,
I have posted the same question please have a look.
http://our.umbraco.org/forum/developers/razor/28482-Render-Control-on-cshtml-page
Please help this is really urgent.
is working on a reply...