public void binddata(string query)
 {
     try
     {
         tbl_voluntar_team_BAL objbal = new tbl_voluntar_team_BAL();
         DataSet ds = objbal.getdata(query);
         gvlist.DataSource = ds;
         gvlist.DataBind();
     }
     catch (Exception ex)
     {
     }
 }
Exemplo n.º 2
0
    private void bindddlvoluntarteam()
    {
        tbl_voluntar_team_BAL objbal = new tbl_voluntar_team_BAL();
        DataSet ds = objbal.getdata("");

        ddl_voluntar_team_name.DataValueField = "int_voluntar_team_id";
        ddl_voluntar_team_name.DataTextField  = "str_voluntar_team_name";

        ddl_voluntar_team_name.DataSource = ds;
        ddl_voluntar_team_name.DataBind();

        ddl_voluntar_team_name.Items.Insert(0, new ListItem("---select---", "0"));
    }