Bind A DropDownList With Another DropDownList In ASP.NET Web Forms
.png)
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Configuration; using System.Data; namespace BindingDDL { public partial class WebForm1 : System.Web.UI.Page { string cs = ConfigurationManager.ConnectionStrings["dbcs"].ConnectionString; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindCountryDDL(); } } void BindCountryDDL() { SqlConnection con = new SqlConnection(cs); st...