DropDownList not Databinding

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top