You have to check whether
postback
event is fired or not. I put some code below.
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if (!IsPostBack)
{
da.fill(dt);
dropdownlist1.DataSource=dt;
dropdownlist1.DataTextField="city"
dropdownlist1.DataValuefield="city"
dropdownlist1.Databind();
}
}
I hope this helps you well.