Posted on: 6/11/2013 3:53:33 AM | Views : 334

I have 2 datasources
datasourceA is add new record to a database which does not have record now.
another datasourceB is get a list and become datasource of a dropdownlist within a Formview that insert record to datasourceA
I use
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSourceA"  AutoPostBack="true"                             DataTextField="Name" DataValueField="ID"                             SelectedValue='<%# Eval("ID") %>'>                       ...

Go to the complete details ...