protected void loadData()
        {
            ShipperParser newParser = new ShipperParser();
            this.dataModel = new ShipperModel(@".\SQL2008",
                 1433, "TSQLFundamentals2008", "sa", "123456", "Sales.Shippers", newParser);
            newParser.DataModel = this.dataModel;

            try
            {
                this.dataModel.resetModel("");
            }
            catch (Exception ex)
            {
                Session["current_error"] = ex.Message;
                Response.Redirect("serverError.aspx");
            }

            /*if (this.IsPostBack == false)
                this.loadEmpIDS();*/

            if ((Request.Params.Get("suppid") != null))
            {
                this.suppID = int.Parse(Request.Params.Get("suppid").Trim());
                this.newEmpMode = false;
                if (this.IsPostBack == true)
                    return;

                this.loadSuppData();

            }
        }
 protected void loadData()
 {
     string currentFilter ;
     if (IsPostBack == false)
     {
         Session["cat_filter"] = "deactive=0 ";
         currentFilter = "deactive=0 ";
     }
     else
         currentFilter = (string)Session["cat_filter"];
     //this.scriptLb.Text = currentFilter;
     ShipperParser newParser = new ShipperParser();
     this._dataModel = new ShipperModel(this.gvShippers, @".\SQL2008",
          1433, "TSQLFundamentals2008","sa", "123456", "Sales.Shippers", newParser);
     newParser.DataModel = this._dataModel;
     try
     {
         this._dataModel.resetControl(currentFilter);
         //if (this.IsPostBack == false)
           //  this.loadEmpIDS();
     }
     catch(Exception ex)
     {
         Session["current_error"] = ex.Message;
         Response.Redirect("serverError.aspx");
     }
 }