UserControl loses state in TemplateField

Discussion in '.NET' started by jerryjthorpe@gmail.com, Jan 22, 2008.

  1. jerryjthorpe@gmail.com

    jerryjthorpe@gmail.com

    Joined:
    Nov 12, 2007
    Messages:
    2
    Hi,

    I have a UserControl with some ListBoxes on it. It works fine when called from a page unless I embed it in a TemplateField on a DetailsView. It loads properly but the SelectedIndex gets reset to -1 when I press a button to post. How can I save the state of the ListBoxes in the UserControl.

    Thanks,
    Jerry
    jerryjthorpe@gmail.com, Jan 22, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VB Programmer
    Replies:
    0
    Views:
    327
    VB Programmer
    Jul 1, 2003
  2. VB Programmer
    Replies:
    1
    Views:
    331
    Jay B. Harlow [MVP - Outlook]
    Jul 1, 2003
  3. sloan
    Replies:
    2
    Views:
    4,880
    aryan_subhash
    Oct 17, 2007
  4. mesut
    Replies:
    0
    Views:
    556
    mesut
    Jun 29, 2007
  5. VB Programmer

    Problem: public array loses elements (in usercontrol)

    VB Programmer, Jul 1, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    118
    VB Programmer
    Jul 1, 2003
Loading...

Share This Page