protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { String query = "select * from Country"; ob.ExeAdapter(query, "Contry"); ob.DropList(DropDownList1, query, "Country_id", "Country_name", "---select Country---"); } }