示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            /*
             * after postback, scroll position is saved.  Also used to reduce page flashing on postback
             */
            Page.MaintainScrollPositionOnPostBack = true;

            this.suser = Page.User.Identity.Name.ToString().Substring(8);

            utility = new UtilityLockboxImport();

            if (!Page.IsPostBack)
            {
                if (Session["process"] != null)
                {
                    if (Session["process"].ToString().ToLower().Equals("import"))
                    {
                        this.import = true;
                    }
                }

                if (this.import)
                {
                    ImportFile();
                }

                GridViewImportedDataBind();
            }

            PopulateLabelProcessingOutput();
            utility.SetRowChanged(GridViewImportedData.Rows.Count);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            /*
             * after postback, scroll position is saved.  Also used to reduce page flashing on postback
             */
            Page.MaintainScrollPositionOnPostBack = true;

            this.suser = Page.User.Identity.Name.ToString().Substring(8);

            utility = new UtilityLockboxImport();

            if (!Page.IsPostBack)
            {
                if (Session["process"] != null)
                {
                    if (Session["process"].ToString().ToLower().Equals("import"))
                    {
                        this.import = true;
                    }
                }

                if (this.import)
                {
                    ImportFile();
                }

                GridViewImportedDataBind();
            
            }

            PopulateLabelProcessingOutput();
            utility.SetRowChanged(GridViewImportedData.Rows.Count);
        }