Handling .NET Pages in Cascade

msmith's Avatar

msmith

25 Aug, 2010 05:30 PM

Hello.

How do you get cascade templates to allow you to use <%@ %> and other .NET inline code tags like <% %> or <%= %>? Is <asp:Control /> supported?

Thanks,

Micah

  1. Support Staff 1 Posted by Tim on 25 Aug, 2010 05:43 PM

    Tim's Avatar

    Hi Micah,

    You'll want to use Passthrough Code Sections and Root Code Sections for any server-side scripting code that you need to add to your Templates.

    Let me know if that link helps you.

    Thanks

  2. 2 Posted by msmith on 25 Aug, 2010 05:46 PM

    msmith's Avatar

    Helps a lot. Can you make system regions inside of a passthrough/root section?

  3. Support Staff 3 Posted by Tim on 25 Aug, 2010 05:53 PM

    Tim's Avatar

    No, but you can achieve the same thing by having a code section followed by a system-region followed by another code section. For example:

    <!--#START-CODE ...here is some code... #END-CODE-->
    <system-region name="REGION-WITHIN-CODE-SECTION"/>
    <!--#START-CODE ...here is some more code...#END-CODE-->
  4. 4 Posted by msmith on 25 Aug, 2010 06:26 PM

    msmith's Avatar

    Wow-- thanks so much!

  5. 5 Posted by Penny on 25 Aug, 2010 06:36 PM

    Penny's Avatar

    It's also worth noting that you can implement pass through code in blocks and formats that you create as well. This would allow you to have the same effect as wrapping a system-region in pass through tags as well.

  6. Tim closed this discussion on 25 Aug, 2010 06:50 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac