locked
asp.net session object get the store info to second page RRS feed

  • Question

  •  protected void Button1_Click(object sender, EventArgs e)
            {   
                for (int i = 0; i < CheckBoxList1.Items.Count; i++)
                {
                    if(CheckBoxList1.Items.[i].selected)
                    {
                        cart.Add(CheckBoxList1.Items[i].Text);
                    }

                }
                 Session["message"]=cart;
                Response.Redirect("Display.aspx");

            }

    I store the checkboxlist item to a session object

    now how i will send this checkboxlist text item and total item to a table in another page Display.aspx

                              
    Wednesday, June 5, 2013 3:34 PM

Answers

  • Hello,

    This should have been asked in Microsoft's ASP.Net forums:

    http://forums.asp.net/

    As Microsoft's ASP.Net forums are on a different platform, we cannot move the question for you.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    • Proposed as answer by Just Karl Wednesday, April 15, 2015 7:21 PM
    • Marked as answer by Just Karl Friday, April 17, 2015 8:10 PM
    Tuesday, April 14, 2015 7:45 PM