Esempio n. 1
0
 private void GetRecords(int Id)
 {
     DataTable table = BAL_Zones.SelectZones("selectbyid", Id);
     {
         txtZone.Text = Convert.ToString(table.Rows[0]["ZoneName"]);
     }
 }
Esempio n. 2
0
    private void Fillddl()
    {
        DataTable dt = BAL_Zones.SelectZones("selectall", 0);

        ddlZoneName.DataSource     = dt;
        ddlZoneName.DataValueField = "ZoneID";
        ddlZoneName.DataTextField  = "ZoneName";
        ddlZoneName.DataBind();
        ddlZoneName.Items.Insert(0, new ListItem("-- Select --", "-1"));
    }
Esempio n. 3
0
    private void FillGrid()
    {
        DataTable table = BAL_Zones.SelectZones("selectall", 0);

        gvAdminList.DataSource = table;
        gvAdminList.DataBind();
        if (gvAdminList.Rows.Count > 0)
        {
            lblsearch2.Visible = true;
        }
        else
        {
            lblsearch2.Visible = false;
        }
    }