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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -