protected void Button1_Click(object sender, EventArgs e) { if (ddl.SelectedIndex >= 0 ) { localhost.Service serviceObj = new localhost.Service(); bool success = serviceObj.DeleteTable((int)Session["orgID"], Convert.ToInt32(ddl.SelectedValue)); if (success) Label3.Visible = true; else Label4.Visible = false; int OrgID = (int)Session["orgID"]; localhost.Table[] array = serviceObj.GetTables(OrgID); listOfTables = new List<localhost.Table>(array); ddl.DataSource = listOfTables; ddl.DataTextField = "TNameProperty"; ddl.DataValueField = "ObjIDProperty"; ddl.DataBind(); } }