Esempio n. 1
0
        private void BindCategory()
        {
            try
            {
                DataTable dtCategory = new DataTable();



                dtCategory                 = onlineOrderBackOfficeBo.GetLookupCategory().Tables[0];
                ddlCategory.DataSource     = dtCategory;
                ddlCategory.DataValueField = dtCategory.Columns["WCM_Id"].ToString();
                ddlCategory.DataTextField  = dtCategory.Columns["WCM_Name"].ToString();
                ddlCategory.DataBind();
                ddlCategory.Items.Insert(0, new ListItem("Select", "Select"));
            }



            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "ManageLookups.ascx.cs:BindCategory()");
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }