ho provato a fare così:
codice:
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlGruppi" DataTextField="descrizione"
DataValueField="descrizione">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlGruppi" runat="server" ConnectionString="<%$ ConnectionStrings:MYTELENEWS %>"
SelectCommand="SELECT * FROM [soluzioni]"></asp:SqlDataSource>
<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlSoluzioni" DataTextField="descrizione"
DataValueField="descrizione">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlSoluzioni" runat="server" ConnectionString="<%$ ConnectionStrings:MYTELENEWS %>"
SelectCommand="SELECT * FROM [gruppi] WHERE ([soluzione#] = @column1)">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" DefaultValue="soluzione#" Name="column1"
PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
ma ottengo questo errore:
codice:
Input string was not in a correct format.