Exemplo n.º 1
0
    protected void BindRepeaterData()
    {
        DALSchedule objDAL = new DALSchedule();
        DataTable   dt     = objDAL.GetFranchiseeList("");

        RepSample.DataSource = dt;
        RepSample.DataBind();
        objDAL = null;
        dt     = null;
    }
Exemplo n.º 2
0
    protected void ddlFranCity_SelectedIndexChanged(object sender, EventArgs e)
    {
        DALSchedule objDAL = new DALSchedule();
        DataTable   dt     = null;

        if (ddlFranCity.SelectedItem.Text.ToString() == "-------Select--------")
        {
            dt = objDAL.GetFranchiseeList("");
        }
        else
        {
            dt = objDAL.GetFranchiseeList(ddlFranCity.SelectedItem.Text.ToString());
        }
        RepSample.DataSource = dt;
        RepSample.DataBind();
        objDAL = null;
        dt     = null;
    }