Posted on: 8/27/2014 9:43:10 PM | Views : 423

hi
I have a dropdown list in a formview. It is bound to ObjectDataSource and
returns county sql table.

In code behind i am setting DropDownList2.SelectedValue - but I get the CountryId

What I want is the CommonName which is also column in CountryTable - the only
thing is the Bind is in Edit Mode and already selects existing value which is Id in datatable

is there a way round this?

thank you                                                   <asp:DropDownList ID="DropDownList2" runat="server" class="inputbox"         DataSourceID="CountryObj" DataTextField=& ...

Go to the complete details ...