G
Guest
Hi,
I've defined an ObjectDataSource and a parameterized DataSet. I would like
it if I could pass the parameter value that describes the query that creates
the DataSet as part of a user control declaration. Here's how the parameter
is described in the context of my ObjectDataSource:
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="GetArticlesByWhomever"
TypeName="WhateverTableAdapters.WhateverTableAdapter">
<SelectParameters>
<asparameter DefaultValue="83" Name="PersonID" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
The query that's part of the DataSet has a standard @Parameter string, and
I've verfied that it is working with the DefaultValue I'm passing.
Can somone tell me how to set a differnet Parameter value using a value
passed from a User Control and/or programmatically?
Thanks,
-KF
I've defined an ObjectDataSource and a parameterized DataSet. I would like
it if I could pass the parameter value that describes the query that creates
the DataSet as part of a user control declaration. Here's how the parameter
is described in the context of my ObjectDataSource:
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="GetArticlesByWhomever"
TypeName="WhateverTableAdapters.WhateverTableAdapter">
<SelectParameters>
<asparameter DefaultValue="83" Name="PersonID" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
The query that's part of the DataSet has a standard @Parameter string, and
I've verfied that it is working with the DefaultValue I'm passing.
Can somone tell me how to set a differnet Parameter value using a value
passed from a User Control and/or programmatically?
Thanks,
-KF