User753101303 posted
So I believe you want something such as :
<asp:DropDownList runat="server" ID="ListView1" DataSourceID="ddlSource" AutoPostBack="true" DataTextField="Text" DataValueField="Id">
</asp:DropDownList>
<asp:SqlDataSource ID="ddlSource" runat="server" ConnectionString="<%$ConnectionStrings:SiteConnectionString %>" SelectCommand="SELECT Text,Id FROM MyTable" />
<asp:SqlDataSource ID="dsDetail" runat="server" ConnectionString="<%$ ConnectionStrings:SiteConnectionString %>" SelectCommand="SELECT * FROM MyTable WHERE Id=@id">
<SelectParameters>
<asp:ControlParameter ControlID="ListView1" Name="id" PropertyName="SelectedValue" />
</SelectParameters>
</asp:SqlDataSource>
<asp:DetailsView runat="server" DataSourceID="dsDetail" DataKeyNames="Id">
</asp:DetailsView>
The drop down is configured to trigger automatically a postback when another value is selected.
The detail view is configure to get data from a SQL statement that uses the value for this control to select what to show.
As a result if you select a value from the drop down, the page is refreshed and shows the selected row in the the detail control. I don"t have any code at all in my code behind.