Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 26, 2012 03:54 AM by SonicMan
Member
5 Points
22 Posts
Jun 18, 2012 11:49 AM|LINK
Is there a way to use razor syntax inside a DefineSection()? For example:
DefineSection("SectionName", () => { @: Print me! });
Also, is it possible to have a dynamic string in the alternate Section definition? IE:
@{ string MyStringObject = "CoolSection"; } @section MyStringObject { }
Participant
1472 Points
228 Posts
Jun 26, 2012 03:54 AM|LINK
Hi
Have you try it ?
What's the ERROR?
bagosm
Member
5 Points
22 Posts
Razor syntax inside DefineSection()
Jun 18, 2012 11:49 AM|LINK
Is there a way to use razor syntax inside a DefineSection()? For example:
DefineSection("SectionName", () => { @: Print me! });Also, is it possible to have a dynamic string in the alternate Section definition? IE:
@{ string MyStringObject = "CoolSection"; } @section MyStringObject { }SonicMan
Participant
1472 Points
228 Posts
Re: Razor syntax inside DefineSection()
Jun 26, 2012 03:54 AM|LINK
Hi
Have you try it ?
What's the ERROR?