protected void Page_Load(object sender, EventArgs e)
 {
     sqlParamSrh[3].Value = int.Parse(rdoboth.SelectedValue);
     if (!Page.IsPostBack)
     {
         //Filling Countries to grid of calling BindDataGrid of CommonClass
         objCommonClass.BindDataGrid(gvComm, "uspBranchMaster", true, sqlParamSrh, lblRowCount);
         objBranchMaster.BindRegionCode(ddlRegionDesc);
         ddlState.Items.Insert(0, new ListItem("Select", "Select"));
         ddlCity.Items.Insert(0, new ListItem("Select", "Select"));
         imgBtnUpdate.Visible = false;
         ViewState["Column"]  = "Branch_Code";
         ViewState["Order"]   = "ASC";
     }
     System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        sqlParamSrh[3].Value = int.Parse(rdoboth.SelectedValue);
        if (!Page.IsPostBack)
        {
            //Code Added By Pravesh//////////////
            //    objCommonClass.EmpID = Membership.GetUser().UserName.ToString();
            //    ds = objCommonClass.GetRegionID();
            //    if (ds.Tables[0].Rows.Count != 0)
            //       objCommonClass.RegionID=int.Parse(ds.Tables[0].Rows[0]["Region_SNo"].ToString());

            //    SqlParameter[] sqlParamSrhByRegionID =
            //{
            //    new SqlParameter("@Type","SEARCHBYREGIONID"),
            //    new SqlParameter("@Column_name",""),
            //    new SqlParameter("@SearchCriteria",""),
            //    new SqlParameter("@Region_SNo",objCommonClass.RegionID),
            //    new SqlParameter("@Active_Flag","1")

            //};
            //    if (objCommonClass.RegionID != 0)
            //        sqlParamSrh = sqlParamSrhByRegionID;
            ////////////////////////////////////

            //Filling Countries to grid of calling BindDataGrid of CommonClass
            objCommonClass.BindDataGrid(gvServiceContractor, "uspServiceContractorMaster", true, sqlParamSrh, lblRowCount);
            objBranchMaster.BindRegionCode(ddlRegion);
            objServiceContractorMaster.BindScState(ddlState);
            ddlBranch.Items.Insert(0, new ListItem("Select", "Select"));
            ddlCity.Items.Insert(0, new ListItem("Select", "Select"));
            imgBtnUpdate.Visible = false;

            ViewState["Column"] = "SC_Code";
            ViewState["Order"]  = "ASC";
        }
        System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
    }