<bdo id='QEKav'></bdo><ul id='QEKav'></ul>

      <small id='QEKav'></small><noframes id='QEKav'>

    1. <tfoot id='QEKav'></tfoot>
      <legend id='QEKav'><style id='QEKav'><dir id='QEKav'><q id='QEKav'></q></dir></style></legend>

        <i id='QEKav'><tr id='QEKav'><dt id='QEKav'><q id='QEKav'><span id='QEKav'><b id='QEKav'><form id='QEKav'><ins id='QEKav'></ins><ul id='QEKav'></ul><sub id='QEKav'></sub></form><legend id='QEKav'></legend><bdo id='QEKav'><pre id='QEKav'><center id='QEKav'></center></pre></bdo></b><th id='QEKav'></th></span></q></dt></tr></i><div id='QEKav'><tfoot id='QEKav'></tfoot><dl id='QEKav'><fieldset id='QEKav'></fieldset></dl></div>

      1. 如何在多种模式下滚动asp列表框中的选定项目?

        how to scroll selected item in asp listbox in multiple mode?(如何在多种模式下滚动asp列表框中的选定项目?)

              <legend id='teaWk'><style id='teaWk'><dir id='teaWk'><q id='teaWk'></q></dir></style></legend>
                  <tbody id='teaWk'></tbody>

              1. <i id='teaWk'><tr id='teaWk'><dt id='teaWk'><q id='teaWk'><span id='teaWk'><b id='teaWk'><form id='teaWk'><ins id='teaWk'></ins><ul id='teaWk'></ul><sub id='teaWk'></sub></form><legend id='teaWk'></legend><bdo id='teaWk'><pre id='teaWk'><center id='teaWk'></center></pre></bdo></b><th id='teaWk'></th></span></q></dt></tr></i><div id='teaWk'><tfoot id='teaWk'></tfoot><dl id='teaWk'><fieldset id='teaWk'></fieldset></dl></div>
                • <bdo id='teaWk'></bdo><ul id='teaWk'></ul>
                  <tfoot id='teaWk'></tfoot>

                  <small id='teaWk'></small><noframes id='teaWk'>

                  本文介绍了如何在多种模式下滚动asp列表框中的选定项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个选择模式为多个的列表框

                  I have a listbox with selection mode is multiple

                  <asp:ListBox id="Listbox1" runat="server" Width="230px" Height="168px" 
                  SelectionMode="Multiple"></asp:ListBox>
                  

                  我正在使用数据源进行数据绑定

                  I am databinding using a datasource

                  Me.Listbox1.Items.Clear()
                  Me.Listbox1.DataSource = ayl_arraylist_memberslist
                  Me.Listbox1.DataTextField = "Key"
                  Me.Listbox1.DataValueField = "Value"
                  Me.Listbox1.DataBind()
                  

                  我将一个列表框 listbox1 项目发送到用户列表框,但按添加后我无法滚动到所选项目.

                  I am sending one listbox listbox1 item into userlistbox but after pressing add I can't get scrolled to selected item.

                  推荐答案

                  最好带html列表框

                  <select id="ListBox1" runat="server" size="10" style="width:230px; height:168px"></select>
                  
                  
                  <%--<asp:ListBox id="ListBox1" runat="server" Width="230px" Height="174px" SelectionMode="Multiple" ></asp:ListBox>--%>
                  

                  在document.ready中使用jquery listbox change功能,我们可以在multiple模式下修改为

                  and using jquery listbox change function in document.ready we can modify at the multiple mode as

                  $("#ListBox1").attr("multiple", false);
                   $("#ListBox1").change(function () { $("#ListBox1").attr("multiple", true); });
                  

                  并在 .cs 代码后面编写以获取选定索引

                  and write behind .cs code to get slected index

                  这篇关于如何在多种模式下滚动asp列表框中的选定项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                  How do I get at the listbox item#39;s quot;keyquot; in c# winforms app?(如何获取列表框项目的“键?在 c# winforms 应用程序中?)
                  • <i id='PMCgQ'><tr id='PMCgQ'><dt id='PMCgQ'><q id='PMCgQ'><span id='PMCgQ'><b id='PMCgQ'><form id='PMCgQ'><ins id='PMCgQ'></ins><ul id='PMCgQ'></ul><sub id='PMCgQ'></sub></form><legend id='PMCgQ'></legend><bdo id='PMCgQ'><pre id='PMCgQ'><center id='PMCgQ'></center></pre></bdo></b><th id='PMCgQ'></th></span></q></dt></tr></i><div id='PMCgQ'><tfoot id='PMCgQ'></tfoot><dl id='PMCgQ'><fieldset id='PMCgQ'></fieldset></dl></div>

                    • <small id='PMCgQ'></small><noframes id='PMCgQ'>

                        <tfoot id='PMCgQ'></tfoot>

                          <bdo id='PMCgQ'></bdo><ul id='PMCgQ'></ul>
                              <tbody id='PMCgQ'></tbody>
                            <legend id='PMCgQ'><style id='PMCgQ'><dir id='PMCgQ'><q id='PMCgQ'></q></dir></style></legend>