CheckBoxList and saving view state

Discussion in 'ASP .Net Web Controls' started by Tommy Martin, Aug 12, 2005.

  1. Tommy Martin

    Tommy Martin Guest

    I have a checkboxlist control on my page. I have to go through the items in
    it and check a few on certain instances. That seems to work fine. I'm using
    cbo.item(index).selected = true to check it however this does not cause it
    to post back to the server so when something else happens on the page that
    causes postback my checks get lost.

    How can I have this saved in the view state?

    Thanks in advance for any help.

    Tommy
     
    Tommy Martin, Aug 12, 2005
    #1
    1. Advertisements

  2. Tommy Martin

    Tommy Martin Guest

    Upon further checking it seems the viewstate isn't saved if the controls are
    disabled.

    Is there a way around this?
     
    Tommy Martin, Aug 12, 2005
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.