ListBox question

Results 1 to 2 of 2

Thread: ListBox question

  1. #1
    Join Date
    Dec 1969

    Default ListBox question

    I am trying figure out if I can do what I think I should be able to do. I would like to store a ListBox in the Cache and when my page loads assign the Cached ListBox to a ListBox on the page.<BR><BR>Like this (in Page_Load): this.ListBox1 = (ListBox)Cache["xyz"];<BR><BR>Via debugging I know that the assignment operation actually works, but when the page renders the ListBox1 is empty.<BR><BR>Why? and more importantly, how do I get the assignment to actually work?<BR><BR>BTW, even a simple ListBox1 = ListBox2 does not work, so the assignment operation for ListBox controls is not behaving as I thought a simple object a = object b would work...

  2. #2
    Join Date
    Dec 1969

    Default Crossposted to c# forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts