DetailsView control and checkboxlist inside a template

Discussion in 'ASP .Net' started by Savvoulidis Iordanis, Aug 10, 2008.

  1. In VS2008, I have a DetailsView control with a checkboxlist control inside
    its Edit template.
    (1) I want the checkboxlist to be dynamic and display only as many
    checkboxes as a user setting is configured. How?
    (2) Also the column that should depict the checkboxlist selections, is a
    simple character column in SSE2005, in the form of a comma-delimited string
    (e.g. 1,5,7,12,23). When the DetailsView is loaded, I want each of the
    corresponding checkboxes in the checkboxlist to be checked, one for each
    number in the comma-delimited string. And also when updating, I want to check
    each checkbox in the list and reproduce a comma-delimited string to save it
    in the database.

    Which events inside the DetailsView should I use and how?

    PS. I don't use ASP.NET's automatic features for updating for the
    DetailsView. The control is always in Edit Mode, and I act based on custom
    command button events inside the templates to do my job.

    TIA
    Iordanis
     
    Savvoulidis Iordanis, Aug 10, 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. JD
    Replies:
    5
    Views:
    11,780
    NetArchitect
    Aug 8, 2007
  2. =?Utf-8?B?dmJNZW50YWw=?=

    CheckboxList inside a usercontrol inside of a datalist.

    =?Utf-8?B?dmJNZW50YWw=?=, Oct 30, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    589
    =?Utf-8?B?dmJNZW50YWw=?=
    Oct 30, 2004
  3. Tamer Ibrahim

    How can I access a calendar control inside a detailsview control?

    Tamer Ibrahim, Jan 29, 2007, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    910
    Alvin Bruney [MVP]
    Jan 30, 2007
  4. Feege
    Replies:
    0
    Views:
    493
    Feege
    Dec 20, 2005
  5. Whoever

    How to update CheckBoxList inside a DetailsView?

    Whoever, Sep 18, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    308
    Whoever
    Sep 18, 2006
Loading...

Share This Page