选择取决于其他选择 [英] Selection Dependent On Other Selection

查看:76
本文介绍了选择取决于其他选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿.

因此,我希望用户选择一个客户.例如ABSA银行.然后选择一个分支.根据他们选择的客户.他们只会是他们可以选择的某些分支.一旦他们做到了.他们将在分支机构中选择一个联系人.再次取决于他们选择了哪个分支.这是下拉菜单的代码.

Hey there.

So I want a user to select a customer. Eg ABSA bank. Then select a Branch. Depending on which customer they select. Their will only be certain branches they can select from. Once they have done this. They will select a contact at the branch. Again depending on which branch they selected. Here is the code for the drop down.

<td>
                        Customer:
                    </td>
                    <td>
                        <asp:dropdownlist id="CustomerdD" runat="server" datatextfield="CustomerName" datavaluefield="CustomerID" xmlns:asp="#unknown">
                            DataSourceID="LinqDataSourceCustomers"&gt;
                            <asp:listitem selected="True" value="-1"></asp:listitem>
                        </asp:dropdownlist>
                    </td>
                
                <tr>
                    <td>
                        Branch:
                    </td>
                    <td>
                        <asp:dropdownlist id="BranchdD" runat="server" datatextfield="BranchName" datavaluefield="BranchID" xmlns:asp="#unknown">
                            DataSourceID="LinqDataSourceBranches"&gt;
                            <asp:listitem></asp:listitem>
                        </asp:dropdownlist>
                    </td>
                </tr>
                <tr>
                    <td>
                        Contact:
                    </td>
                    <td>
                        <asp:dropdownlist id="ContactdD" runat="server" datatextfield="Name" datavaluefield="ContactID" xmlns:asp="#unknown">
                            DataSourceID="LinqDataSourceContacts"&gt;
                            <asp:listitem></asp:listitem>
                        </asp:dropdownlist>
                    </td>


但后来我不确定该怎么做....任何帮助或链接将不胜感激.
:)
Thanks


But then I''m not sure what to do.... Any help or links would be appreciated.
:)
thanks

推荐答案

是否存在执行相同操作的问题?为此,您需要具有级联下拉列表功能.使用Codeproject搜索或Google来获取示例.
Is there any issue doing the same? You need a cascading dropdown feature in order to do it. Use Codeproject search or Google to get examples.


这篇关于选择取决于其他选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆