示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //Init Controls Data before do query
         EnumUtil.BindDictionaryItems2ListControl(this.ddlCategory, "Dashlet_Category");
         //restore query from last time
         RestoreLastQuery();
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //Init Data
            EnumUtil.BindDictionaryItems2ListControl(this.ddlCategory, "Dashlet_Category");
            //Init Controls Data before do query

            using (_session = new Session())
            {
                _actionMode = WebUtil.GetActionMode(this);
                if (_actionMode == Mode.Edit)
                {
                    LoadData();
                }
            }
        }
        if (Request["return"] != null)
        {
            this.toolbarup["Return"].NavigateUrl     = Request["return"];
            this.toolbarbottom["Return"].NavigateUrl = Request["return"];
        }
    }