locked
How to get checked values in checkbox from Database? RRS feed

  • Question

  • Hi friends,

    I have checkboxlist in GridView in ASP page. I am creating checkboxes depending on Number of options in database. I am getting properly this by using splitting the string where i will have all options taken by label. I am splitting this using C# code.

       In another column of table(database) i have default value like already checked while saving. I am taking those default values in another label in ASP page and splitting once again. But after splitting this how to assign to checkbox while page loading. I mean when page gets loaded i need to show checked checkbox (right) symbol depends on default value in database. How to do this?

    Thanks in advance..

    • Moved by eryang Monday, December 14, 2009 2:56 AM (From:.NET Base Class Library)
    Friday, December 11, 2009 6:41 AM

All replies