I have two usercontrols.
usercontrol1 uses a treeview, usercontrol2 uses a grid.
usercontrol2 should show the details of the selected item of usercontrol2
I hope to achieve this by setting the ControlParameter of the Datasource of usercontrol2
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Paket %>"
SelectCommand="SELECT * FROM [tLog] WHERE pPaketID=@pPaketID">
<SelectParameters>
<asp:ControlParameter ControlID="ctl00$MainContent$PaketListe1$RadTreeList1" Type="Int64" Name="pPaketID" DefaultValue="0" PropertyName="SelectedValue" />
</SelectParameters>
</asp:SqlDataSource>
I get an error, stating that
Have I done the wrong thing, made a stupid mistake or am I wanting the impossible?
thx
Gerhard
usercontrol1 uses a treeview, usercontrol2 uses a grid.
usercontrol2 should show the details of the selected item of usercontrol2
I hope to achieve this by setting the ControlParameter of the Datasource of usercontrol2
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Paket %>"
SelectCommand="SELECT * FROM [tLog] WHERE pPaketID=@pPaketID">
<SelectParameters>
<asp:ControlParameter ControlID="ctl00$MainContent$PaketListe1$RadTreeList1" Type="Int64" Name="pPaketID" DefaultValue="0" PropertyName="SelectedValue" />
</SelectParameters>
</asp:SqlDataSource>
I get an error, stating that
DataBinding: Telerik.Web.UI.RadTreeList does not contain a property with the name 'SelectedValue'.
Have I done the wrong thing, made a stupid mistake or am I wanting the impossible?
thx
Gerhard