[DropDownList] (liste) puis [FormView] (détail)
Bonjour,
J'ai une liste deroulante qui s'affiche dans un premier temps via un DropDownList apres avoir selectionné la ligne ou passe la valeure au formview.
Les 2 requetes fonctionnent tres bien sous Toad et/ou sous le générateur de requetes de VS.
Mais lors de l'execution , la liste est correcte mais la sélection ne sélectionne rien/aucun msg d'erreurs.qqn peut-il m'eclairer ?
Je post le code pour mieux illustrer, merci.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
<asp:DropDownListID="DropDownList1"runat="server"AutoPostBack="True"DataSourceID="SqlDataSource1"
DataTextField="AUD_LAB"DataValueField="AUD_LAB">
</asp:DropDownList>
<asp:SqlDataSourceID="SqlDataSource1"runat="server"ConnectionString="<%$ ConnectionStrings:ConnectionString_PPP %>"
ProviderName="<%$ ConnectionStrings:ConnectionString_PPP.ProviderName %>"
SelectCommand='SELECT D.AUD_LAB FROM AGDF_PPP.PPP_UPP_GRP G INNER JOIN AGDF_PPP.PPP_UPP U ON G.UPP_KEY = U.UPP_KEY INNER JOIN AGDF_PPP.PPP_AUD D ON G.GRP_KEY = D.AUD_KEY GROUP BY D.AUD_LAB'>
</asp:SqlDataSource>
<asp:FormViewID="FormView1"runat="server"DataSourceID="SqlDataSource2"></asp:FormView>
<asp:SqlDataSourceID="SqlDataSource2"runat="server"ConnectionString="<%$ ConnectionStrings:ConnectionString_PPP %>"
ProviderName="<%$ ConnectionStrings:ConnectionString_PPP.ProviderName %>"SelectCommand='SELECT D.AUD_LAB, U.UPP_INN, U.UPP_MEL FROM AGDF_PPP.PPP_UPP_GRP G INNER JOIN AGDF_PPP.PPP_UPP U ON G.UPP_KEY = U.UPP_KEY INNER JOIN AGDF_PPP.PPP_AUD D ON G.GRP_KEY = D.AUD_KEY WHERE ("AUD_LAB" = :AUD_LAB)'>
<SelectParameters>
<asp:ControlParameterControlID="DropDownList1"Name="AUD_LAB"PropertyName="SelectedValue"Type="String"/>
</SelectParameters>
</asp:SqlDataSource> |