I am new to VB.net web programming and was wondering how to filter a
drop down from a value from another drop down.

On the first drop down I use a ODS and both the datavalue field and
data text field have been set. I also set the autopost back to true,
so I can capture the ID(datavalue field) in the selectionchanged
event(SELECTEDVALUE).

The method in the business object takes two parameters, one
string(user ID) and the other integer(TEST_ID). As the first parameter
uses the SessionParameter, I would like to capture the TEST_ID from
the DD#1. I understand that I can capture the TEST_ID in a session
variable and noted below, but is there another property that I can
just grab the SELECTEDVALUE from DD1 and add it to the
SELECTPARAMETERS tag? Something like this: <asp:Parameter
DefaultValue="" Name="DD1.SelectedValue" Type="integer" />


Noted below is the HTML code in designer mode:

<asp:DropDownList ID="ddl_2" runat="server" DataSourceID="ods2"
DataTextField="Name"
                    DataValueField="ID" " CssClass="formfield">
                </asp:DropDownList>
                <asp:ObjectDataSource ID="ods2" runat="server"
SelectMethod="get"
                    TypeName="BUSINESS_OBJECT">
                    <selectparameters>
        <asp:SessionParameter DefaultValue="TEST_USER" Name="UserID"
SessionField="language"  Type="String" />
           <asp:Parameter DefaultValue="" Name="DD1.SelectedValue"
Type="integer" />
           </selectparameters>
</asp:ObjectDataSource>

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to