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

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

        <legend id='uIjWp'><style id='uIjWp'><dir id='uIjWp'><q id='uIjWp'></q></dir></style></legend>

        如何在 ASP.NET ListBox 中设置多项选择?

        How to set multiple selections in ASP.NET ListBox?(如何在 ASP.NET ListBox 中设置多项选择?)
          <tbody id='xefQo'></tbody>

          <bdo id='xefQo'></bdo><ul id='xefQo'></ul>
            <tfoot id='xefQo'></tfoot>

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

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

                  本文介绍了如何在 ASP.NET ListBox 中设置多项选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在后面的代码中找不到在 ASP.NET ListBox 中选择多个项目的方法?这是需要在 Javascript 中完成的事情吗?

                  I can't find a way to select multiple items in an ASP.NET ListBox in the code behind? Is this something needs to be done in Javascript?

                  推荐答案

                  这是执行此操作的 VB 代码...

                  this is the VB code to do so...

                  myListBox.SelectionMode = Multiple
                  For each i as listBoxItem in myListBox.Items
                    if i.Value = WantedValue Then
                        i.Selected = true
                    end if 
                  Next
                  

                  这篇关于如何在 ASP.NET ListBox 中设置多项选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  How delegates work (in the background)?(代表如何工作(在后台)?)
                  Func Delegate vs Function(函数委托与函数)
                  Checking a MethodInfo against a delegate(针对委托检查 MethodInfo)
                  How to get the instance of a referred instance from a lambda expression(如何从 lambda 表达式中获取引用实例的实例)
                  How to create a delegate to an instance method with a null target?(如何为具有空目标的实例方法创建委托?)
                  <tfoot id='BTuvf'></tfoot>

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

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

                      <tbody id='BTuvf'></tbody>

                        • <bdo id='BTuvf'></bdo><ul id='BTuvf'></ul>
                            <legend id='BTuvf'><style id='BTuvf'><dir id='BTuvf'><q id='BTuvf'></q></dir></style></legend>