DropDownList not Databinding

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

Guys,

I have a webpage with DropDownLists, TexbBoxes, CheckBoxes
and Labels all databound to a DataSet.

When I first load the page, Databinding happens as
expected.

However, if I PostBack, the DropDownLists do not
databind. They display the correct data, but the selected
item is not selected. All other controls bind as expected.

Examining the View Source html, on load we have:
<option selected="selected" value="2">NSW</option>

on Postback we have:
<option value="2">NSW</option>

Any ideas?

Simon.
 
Back
Top