日期:2014-05-18  浏览次数:20455 次

如何设置母版页content的title
RT

------解决方案--------------------
先在母版页设置一个标题的属性:例如 sTitle
然后在内容页的HTML代码中加入:
<%@ MasterType virtualpath= "~*.Master " %>
这样就可以在CS中访问母版页中的sTitle属性了,同时也就可以设置标题了.
------解决方案--------------------
每个页面 <%@ Page Language= "C# " Title= "User Main Window " %> 设
------解决方案--------------------
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "Default.aspx.cs " Inherits= "_Default " Title= "PageName "%>