protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         var sites = _siteBL.GetSites();
         cboSites.DataSource = sites;
         cboSites.DataBind();
         SetLatestData();
     }
     ntf.VisibleOnPageLoad = false;
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            var sites = _siteBL.GetSites();
            cboSites.DataSource = sites;
            cboSites.DataBind();
            SetLatestData();

            // Pi-solution developer
            language = (Session["myapplication.language"] == null) ? "vi" : Session["myapplication.language"].ToString();
            List <t_LanguageTranslate> list = languageBL.FindAll(x => x.Language == language && x.Noted.Contains("/Supervisor/ManualData/Add_Change.aspx")).ToList();

            //Parse content to form
            var var1 = list.Where(x => x.ControlId.Contains("ucManualDataAdd_btnAdd")).FirstOrDefault();
            btnAdd.Text = (var1 == null) ? "" : var1.Contents;
            var var2 = list.Where(x => x.ControlId.Contains("ucManualDataAdd_btnClear")).FirstOrDefault();
            btnClear.Text = (var2 == null) ? "" : var2.Contents;

            var var3 = list.Where(x => x.ControlId.Contains("Column1")).FirstOrDefault();
            var var4 = list.Where(x => x.ControlId.Contains("Column2")).FirstOrDefault();
            var var5 = list.Where(x => x.ControlId.Contains("Column3")).FirstOrDefault();

            foreach (GridColumn col in grv.MasterTableView.Columns)
            {
                if (col.UniqueName == "Description")
                {
                    col.HeaderText = (var3 == null) ? "" : var3.Contents;
                }
                if (col.UniqueName == "TimeStamp")
                {
                    col.HeaderText = (var4 == null) ? "" : var4.Contents;
                }
                if (col.UniqueName == "Index")
                {
                    col.HeaderText = (var5 == null) ? "" : var5.Contents;
                }
            }
            grv.Rebind();

            var var6 = list.Where(x => x.ControlId.Contains("lbAliasName")).FirstOrDefault();
            lbAliasName.Text = (var6 == null) ? "" : var6.Contents;
        }
        ntf.VisibleOnPageLoad = false;
    }