Example #1
0
 public void binddata(string query)
 {
     try
     {
         tbl_district_BAL objbal = new tbl_district_BAL();
         DataSet          ds     = objbal.getdata(query);
         gvlist.DataSource = ds;
         gvlist.DataBind();
     }
     catch (Exception ex)
     {
     }
 }
Example #2
0
    private void bindddldistrict()
    {
        try
        {
            tbl_district_BAL objbal = new tbl_district_BAL();
            DataSet          ds     = objbal.getdata("");

            ddl_district.DataValueField = "int_district_id";
            ddl_district.DataTextField  = "str_district_name";

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

            ddl_district.Items.Insert(0, new ListItem("---select---", "0"));
        }
        catch (Exception ex)
        {
        }
    }