protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DropDownList.DataSource = myTools.GetTablesName(); DropDownList.DataBind(); GridView1.DataSource = myTools.GetTable("Country"); GridView1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DropDownList.DataSource = myTools.GetTablesName(); DropDownList.DataBind(); GridView1.DataSource = myTools.GetTable("Country"); GridView1.DataBind(); } }