必须填写至少10个字的日志
nnhy authored at 2011-11-15 14:05:38
928.00 B
X
using System;
using NewLife.Reflection;
using System.Web.UI.HtmlControls;

public partial class Admin_MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        PropertyInfoX pix = PropertyInfoX.Create(Page.GetType(), "Navigation");
        if (pix != null) Navigation.Text = (String)pix.GetValue(Page);

        Page.ClientScript.RegisterClientScriptInclude("jquery", ResolveUrl("~/Scripts/jquery-1.4.1.min.js"));
        Page.ClientScript.RegisterClientScriptInclude("adminstyle", ResolveUrl("~/Scripts/adminstyle.js"));
        //Page.ClientScript.RegisterClientScriptInclude("css", "~/Admin/images/css.css");

        HtmlLink link = new HtmlLink();
        link.Href = ResolveUrl("~/Admin/images/css.css");
        link.Attributes["rel"] = "stylesheet";
        link.Attributes["type"] = "text/css";
        Page.Header.Controls.Add(link);
    }
}