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

    1. <legend id='8Jfjn'><style id='8Jfjn'><dir id='8Jfjn'><q id='8Jfjn'></q></dir></style></legend>

      <small id='8Jfjn'></small><noframes id='8Jfjn'>

    2. 试图了解通过会话传输列表框值/项目.

      Trying to understand transfering listbox values/items with sessions.(试图了解通过会话传输列表框值/项目.)

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

            • <tfoot id='OqVFB'></tfoot>

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

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

                本文介绍了试图了解通过会话传输列表框值/项目.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                在我的第一页我有两个列表框 MoviesSnacks

                On my first page I have two listboxes for Movies and Snacks

                Movies 称为 lbDisplaySnacks 称为 lbSelected.

                我目前正在使用具有以下代码的转到购物车"功能:

                I am currently using a "Go to cart" function that has the following code:

                Session["lbSelectedMovies"] = lbDisplay;
                Session["lbSelectedSnacks"] = lbSelected;
                Response.Redirect("RingU6POSReview.aspx");
                

                在重定向页面上,我希望将给定值传输到的两个列表框称为 lbRvMovieslbRvSnacks

                on the redirected page the two listboxes that I want the given values to transfer to are called lbRvMovies and lbRvSnacks

                页面名为RingU6POSReview.aspx

                谁能帮助我了解在重定向客户时如何传递值?

                Can anyone help me understand how to transfer the values when I redirect the customer?

                推荐答案

                在第二页上说你有另一个列表框(比如 ListBox1),你想给它分配传递的值,然后使用下面的任何一个.3种方法:

                On the 2nd page say you have another list box (say ListBox1) to which you want to assign the passed values then use the any one of the foll. 3 methods:

                   ListBox  ListBox1 = null;
                
                        ListBox1 = Session["lbSelectedMovies"] as ListBox;
                

                ListBox ListBox1 = new ListBox();       
                    foreach (ListItem Item in ((ListBox)(Session["lbSelectedMovies"])).Items)
                    {          
                        ListBox1.Items.Add(new ListItem(Item.Text, Item.Value));
                    }
                

                ListBox1.Items.AddRange((ListItem[])Session["lbSelectedMovies"]);
                

                这篇关于试图了解通过会话传输列表框值/项目.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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(更新时防止列表框滚动到顶部)
                Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                <tfoot id='cMsfR'></tfoot>

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

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

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

                          <tbody id='cMsfR'></tbody>