board logo
Posted by: Lemonde - 19 June 2020 11:51:01
How can I get me Masterpage.Master to inherit the property from the default.aspx page? I want to be able to use <%: Page.Title %> in text that will change in the master page area navigation with each aspx web page selected </td> </tr> </tbody> </table> <br/> <table class="table table-bordered" aria-describedby="Make masterpage.master inherit page title from VB website"> <thead> <tr> <th scope="col"> <strong>Posted by: sirclesadmin</strong> - 19 June 2020 12:40:44 </th> </tr> </thead> <tbody> <tr> <td> Go to the cs/vb code page of each aspx content page, and in the {} brackets enter: Page.Title = "page title"; and save and test. Now using <%: Page.Title %> in your master page should substitute the content page title </td> </tr> </tbody> </table> <br/> <!-- Modal placeholder --> <div id="modal-placeholder"></div> <script> function addConsentCookie(name,value,days){var expires;if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toGMTString();}else{expires="";} document.cookie=encodeURIComponent(name)+"="+encodeURIComponent(value)+expires+"; path=/";} </script> <div class="alert alert-dismissible text-center cookiealert" role="alert"> <h4 class="alert-heading"> Important Information: </h4> <form method="post"> <p> The PC & Mac Help and Assistance uses cookies. By continuing to browse this site, you are agreeing to our use of cookies. <a href="/Cookies" role="button" class="btn btn-link" type="button"><span class="ms-1">More Details</span></a> <button type="submit" onclick="addConsentCookie('YAF-AcceptCookies', 'true', 365)" data-bs-dismiss="alert" aria-label="Close" class="btn btn-primary"><i class="fa fa-check-square me-1"></i><span class="ms-1">Close</span></button> </p> <input name="__RequestVerificationToken" type="hidden" value="CfDJ8CkB5BoeyyVLuh1SBokN6-eqaoRvH_6BHZEtptVB0nDNu7bOFPYDblR_Fg3w5KJlgnVNTkgXLDhT-iSdGaQ_nHMe3ldTUhHj4ZgeHXMvqtvBsi1RB_JbMsDJqDFQQqXDYgmlt8rFuwt7AzQZeIt6iJo" /></form> </div> <button class=" btn btn-outline-secondary btn-sm btn-scroll" title="Scroll to top" type="button"><i class="fa fa-angle-double-up "></i></button> <footer class="footer"> <div class="text-end"> <a href="/Privacy" title="Privacy Policy">Privacy Policy</a><p class="text-body-secondary small">This page was generated in 0.015 seconds.</p> </div> </footer> </div> </div> <script src="/js/forumExtensions.min.js?v=ZcARKPwxHATgsE9HSEPEr_SLqYZNM_bwmuUOBvVWCHA"></script> <script> document.addEventListener('DOMContentLoaded',function(){document.querySelectorAll(".hc-user").forEach(pop=>{userCardContent(pop,2000);});}); </script> </body> </html>