Listbox data going away

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doogie

    #16
    Re: Listbox data going away

    On Nov 7, 11:11 am, "Vinay Khaitan" <vkhai...@gmail .comwrote:
    BECAUSE THAT'S NOT WHAT THE OP ACTUALLY WANTED TO DO!!!
    >
    Oh, my god. Doogie tried it but could not get it right. Okay, let the doogie
    reply to it. If it works for him, why to bother.
    >
    --
    Vinay Khaitan
    [Windows Forms Layout Control]http://www.smart-components.com/
    ----------------------------------------------------------------
    Wow. I didn't know you all had kept talking about this. I used the
    runat="server" option on my hidden text box and I'm good with getting
    what I need. The biggest issue I ran into is say I posted to the
    server, but ran into some issue that the user needs to correct (i.e.
    invalid number, missing some other value on the form, etc). The data
    in the listbox is gone. So I reload it using the hidden text box.
    However, once I reload it, it's now on the server and not on the
    client. So say the user adds a couple more numbers and tries to go to
    the server again and say another issue happens. The attempt to reload
    it that time causes duplicate numbers because some of them didn't go
    away that time (because they are on the server now). So to get around
    it, the moment I go to the server, I clear the listbox completely on
    my own, and load it with my hidden text box.

    But in essence, I got everything working so I'm good. Thanks!

    Comment

    Working...