Your code should look like following:
--------------------------
If Not IsPostBack Then
cnBATT.ConnectionString = System.Configuration.Confi
DsCountries1.Clear()
adptCountries.Fill(DsCount
Me.basedIn.DataBind()
Me.hqIn.DataBind()
End If
--------------------------
If you're binding your DropDownList outside of IsPostBack then when you hit submit it'll get bind again and so the value will be defaulted to the 1st one.
-tushar
Main Topics
Browse All Topics





by: tusharashahPosted on 2004-11-19 at 07:56:36ID: 12626467
Make sure you Bind your DropDownList when IsPostBack is false in Page_Load event:
-tushar