using (SqlDataAdapter sda = new SqlDataAdapter()) { cmd.Connection = con; con.Open(); ddl.DataSource = cmd.ExecuteReader(); ddl.DataTextField = text; ddl.DataValueField = value; ddl.DataBind(); con.Close(); }
Im sorry, my codes actually did not work
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.