More in this section
Forums / Designing & Styling / template div tags.

template div tags.

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 1 answered
  1. Owain
    Owain avatar
    110 posts
    17 Jan 2012
    08 Jun 2012
    Link to this post
    Just a quick question which I hope has a quick answer.
    When creating templates within Sitefinity in the Template editor, I can add CSS classes to Divs but do the Div tags have runat="server" set on them? If they don't, is there a way I can add this?

    I'm looking to populate a div from codebehind and wanted to find out if runat="server is within the template or not. Thanks
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    18 Sep 2017
    12 Jun 2012
    Link to this post

    Yes divs have runat server property. Each layout element which is created hen creating  sitefinity page template with the sitefinity template editor is composed of a stricture like this.
    <div runat="server" class="sf_cols">
        <div runat="server" class="sf_colsOut sf_1col_1_100">
            <div runat="server" class="sf_colsIn sf_1col_1in_100 myCustomCSSClass">
    More information can be found in this documentation.

    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 1 answered