AppOld/Default.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using EKETEAM.FrameWork;
using EKETEAM.Data;

namespace eFrameWork.AppOld
{
    public partial class Default : System.Web.UI.Page
    {
        public eUser user;
        public ApplicationMenu appmenu;
        public string appTitle = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            user = new eUser("Application");
            user.Check();
        

            appTitle = eConfig.ApplicationTitle(user["SiteID"].ToString());
            appmenu = new ApplicationMenu(user,"1");

            //eBase.PrintDataTable(appmenu.UserApps.Select("ApplicationID,ApplicationItemID,ModelID,MC,ModelName", "MC='内容管理'", ""));
            //eBase.End();

            if (appmenu.Applications.Rows.Count == 0)
            {
                Response.Write("没有权限!&nbsp;&nbsp;<a href=\"Login.aspx\">重新登录</a>");
                Response.End();
            }
            if (appmenu.Applications.Rows.Count == 1) //直接跳转应用
            {
                Response.Redirect(appmenu.Applications.Rows[0]["href"].ToString(), true);
            }
            else //用户选择应用
            {
                //Rep.ItemDataBound += new RepeaterItemEventHandler(Rep_ItemDataBound);
                Rep.DataSource = appmenu.Applications;
                Rep.DataBind();
            }
        }
        
        protected void Rep_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                Control ctrl = e.Item.Controls[0];
                Literal lit = (Literal)ctrl.FindControl("LitTags");
                if (lit != null)
                {
                    //lit.Text = DataBinder.Eval(e.Item.DataItem, "ModelTabID").ToString();
                }
            }
        }
    }
后面还有 1 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。