Example #1
0
 public static States GetStatesByStateID(int StateID)
 {
     States states = new States();
     SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();
     states = sqlStatesProvider.GetStatesByStateID(StateID);
     return states;
 }
Example #2
0
 public static DataSet GetDropDownListAllStates()
 {
     DataSet statess = new DataSet();
     SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();
     statess = sqlStatesProvider.GetDropDownLisAllStates();
     return statess;
 }
Example #3
0
    public static States GetStatesByStateID(int StateID)
    {
        States            states            = new States();
        SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();

        states = sqlStatesProvider.GetStatesByStateID(StateID);
        return(states);
    }
Example #4
0
    public static DataSet  GetDropDownListAllStates()
    {
        DataSet           statess           = new DataSet();
        SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();

        statess = sqlStatesProvider.GetDropDownLisAllStates();
        return(statess);
    }
Example #5
0
 public static void LoadStatesPage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize)
 {
     int recordCount=0;
     int PageSize =  int.Parse(ddlPageSize.SelectedValue);
     SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();
     DataSet ds =  sqlStatesProvider.GetStatesPageWise(pageIndex, PageSize, out recordCount);
     gv.DataSource = ds;
     gv.DataBind();
      statessPaggination(rptPager,recordCount, pageIndex, PageSize);
 }
Example #6
0
    public static void LoadStatesPage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize)
    {
        int recordCount = 0;
        int PageSize    = int.Parse(ddlPageSize.SelectedValue);
        SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();
        DataSet           ds = sqlStatesProvider.GetStatesPageWise(pageIndex, PageSize, out recordCount);

        gv.DataSource = ds;
        gv.DataBind();
        statessPaggination(rptPager, recordCount, pageIndex, PageSize);
    }
Example #7
0
    public static bool DeleteStates(int statesID)
    {
        SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();

        return(sqlStatesProvider.DeleteStates(statesID));
    }
Example #8
0
    public static bool UpdateStates(States states)
    {
        SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();

        return(sqlStatesProvider.UpdateStates(states));
    }
Example #9
0
    public static int InsertStates(States states)
    {
        SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();

        return(sqlStatesProvider.InsertStates(states));
    }
Example #10
0
 public static bool UpdateStates(States states)
 {
     SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();
     return sqlStatesProvider.UpdateStates(states);
 }
Example #11
0
 public static int InsertStates(States states)
 {
     SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();
     return sqlStatesProvider.InsertStates(states);
 }
Example #12
0
 public static bool DeleteStates(int statesID)
 {
     SqlStatesProvider sqlStatesProvider = new SqlStatesProvider();
     return sqlStatesProvider.DeleteStates(statesID);
 }