I have the following code in my master page:
<div id="body" runat="server">
<asp:ContentPlaceHolder runat="server" ID="FeaturedContent" />
<section runat="server" id="sectionMainContent" class="content-wrapper main-content clear-fix">
<asp:ContentPlaceHolder runat="server" ID="MainContent" />
</section>
</div>
For one specific content page I would like to change the class value of the <section>
above to something like class="content-wrapper-full-width main-content clear-fix"
How can I access the <section>
's attributes from codebehind of the content page and modify its value?
<%@ MasterType virtualpath="~/YourMasterPage.master" %>
in your Content Page ? – Museology