コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        PageViewManager.SetActiveView(SitePage);
        //加载数据
        string    siteRecordfilepath = HttpRuntime.AppDomainAppPath; //获取当前的路径
        XDocument xdoc = XDocument.Load(siteRecordfilepath + "SiteRecord\\SiteRecord.xml");
        XElement  xEle = (from node in xdoc.Element("SiteRecord").Elements("TotalVistor") select node).Single() as XElement;

        LabelVisitorNum.Text = xEle.Value;
        xEle = (from node in xdoc.Element("SiteRecord").Elements("TodayVistor") select node).Single() as XElement;
        LabelTodayVisitorNum.Text = xEle.Value;
        xEle = (from node in xdoc.Element("SiteRecord").Elements("TotalUser") select node).Single() as XElement;
        LabelRegsiterNum.Text = xEle.Value;
        xEle = (from node in xdoc.Element("SiteRecord").Elements("TodayRegister") select node).Single() as XElement;
        LabelTodayRegsiterNum.Text = xEle.Value;
        xdoc.Save(siteRecordfilepath + "SiteRecord\\SiteRecord.xml");
    }
コード例 #2
0
 protected void FileManage_Click(object sender, EventArgs e)
 {
     PageViewManager.SetActiveView(FilePage);
 }
コード例 #3
0
 protected void UserManage_Click(object sender, EventArgs e)
 {
     PageViewManager.SetActiveView(UserPage);
 }
コード例 #4
0
 protected void RelationManage_Click(object sender, EventArgs e)
 {
     PageViewManager.SetActiveView(RelationPage);
 }
コード例 #5
0
 protected void DataManage_Click(object sender, EventArgs e)
 {
     PageViewManager.SetActiveView(DataPage);
 }
コード例 #6
0
 protected void SiteView_Click(object sender, EventArgs e)
 {
     PageViewManager.SetActiveView(SitePage);
 }