private void BindCity() { try { DataTable dt = new DataTable(); dt = objBL_City_Master.BL_BindCity(objML_City_Master); if (dt.Rows.Count > 0) { GrdCity.DataSource = dt; GrdCity.DataBind(); } } catch (Exception ex) { ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('" + ex.Message.ToString() + "')", true); } }
protected void BindProgramsInfo() { try { DataTable dt = new DataTable(); dt = objBL_Panels.BL_CityBind(objML_Panels); if (dt.Rows.Count > 0) { GrdCity.DataSource = dt; GrdCity.DataBind(); lblGrid.Text = ""; } else { lblGrid.Text = "No Data Found !"; } } catch (Exception ex) { ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('" + ex.Message.ToString() + "');", true); } }
public void Bindgried(int?id) { GrdCity.DataSource = locationBusinessAccess.ReadConsulate(id); GrdCity.DataBind(); }