template div tags. - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

template div tags.

  • template div tags.
  • Hi!
    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
  • Hi,

    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">
      
            </div>
        </div>
    </div>
    More information can be found in this documentation.

    Greetings,
    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