Jquery Mobile : Managing data-roles in ASP.NET Master pages -
i using master pages hold of pages content.
each data-role section has it's own editable region below.
<div id="page" data-role="page"> <%-- start header --%> <div data-role="header"> <%-- header data removed brevity --%> <asp:contentplaceholder id="headcontent" runat="server"/> </div> <%-- end header --%> <%-- start main content --%> <div data-role="content"> <asp:contentplaceholder id="maincontent" runat="server"/> </div> <%-- end main content --%> <%-- start footer --%> <div data-role="footer"> <%-- footer data removed brevity --%> </div> <%-- end footer --%> </div> i increasing realizing many features require unique data-role="page" id
question
i interested in efficient ways able call page id content page without having apply below code every page. have suggestions?
i don't know if best way, in master page, set page div id variable codebehind:
<div id="<%= thepageid %>" data-role="page"> then in each individual aspx page uses master page, setup public string variable in codebehind called thepageid set desired id e.g.:
public string thepageid = "aboutpage";
Comments
Post a Comment