On Apr 1, 9:51 pm, "Ben Rush" <kwen...@yahoo.comwrote:
See here:http://www.ben-rush.net/blog/PermaLi...92-1d5d-4b0d-9...
Does that help?
Hi Ben
Your post is very interesting, but what I meant was something
different:
What I need is to the dropdownlists inside my user control as a
control parameters for other datasources, outside the user control.
Just like I can use SelectedValue of a dropdownlists laying on the
page as a parameters of objectDataSource (or any other datasource)
:
<asp:ObjectDataSource ID="odsTets" runat="server"
SelectMethod="TestMethod" TypeName="testType">
<SelectParameters>
<asp:ControlParameter ControlID="normalDdl1"
Name="parameterName1" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="normalDdl2"
Name="parameterName2" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
I'd like to put those ddl's inside my user controls, define
corresponding properties in the control and use them just like before:
<asp:ObjectDataSource ID="odsTets" runat="server"
SelectMethod="TestMethod" TypeName="testType">
<SelectParameters>
<asp:ControlParameter ControlID="myUserControl"
Name="parameterName1" PropertyName="exposedProperty1" Type="String" />
<asp:ControlParameter ControlID="myUserControl"
Name="parameterName2" PropertyName="exposedProperty2" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
thanks
HP