protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            UserId = Master.userInfo.UserId;   //
           //UserId = "";
            if (!this.IsPostBack)
            {
                initLabel();
                bindTable(null, DEFAULT_ROWS);
                setColumnWidth();
                //ScriptManager.RegisterStartupScript(this.updatePanel, typeof(System.Object), "init", "showFirstFamilyDataList();", true);
      //          Customer = UserInfo.Customer;
            }

            iECRVersion = ServiceAgent.getInstance().GetMaintainObjectByName<IECRVersion>(WebConstant.IECRVersion);
        }
        catch (FisException ex)
        {
            showErrorMessage(ex.mErrmsg);
            bindTable(null, DEFAULT_ROWS);
            //this.hidRecordCount.Value = "0";
        }
        catch (Exception ex)
        {
            showErrorMessage(ex.Message);
            bindTable(null, DEFAULT_ROWS);
            //this.hidRecordCount.Value = "0";
        }
        ScriptManager.RegisterStartupScript(this.updatePanel, typeof(System.Object), "InitControl", "initContorls();", true);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            iECRVersion = ServiceAgent.getInstance().GetMaintainObjectByName<IECRVersion>(WebConstant.IECRVersion);

            if (!this.IsPostBack)
            {
                if (isPercentage)
                {
                    if (Convert.ToInt32(width) > 100)
                    {
                        drpFamily.Width = Unit.Percentage(100);
                    }
                    else
                    {
                        drpFamily.Width = Unit.Percentage(Convert.ToDouble(width));
                    }
                }
                else
                {
                    drpFamily.Width = Unit.Parse(width);
                }

                this.drpFamily.CssClass = cssClass;
                this.drpFamily.Enabled = enabled;

                if (enabled)
                {
                    initFamily();
                }
                else
                {
                    this.drpFamily.Items.Add(new ListItem("", ""));
                }
            }
        }
        catch (FisException ex)
        {
            showCmbErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            showCmbErrorMessage(ex.Message);
        }
    }