Custom control DataSet bind issue

Discussion in 'MCSD' started by jacksu, Mar 2, 2004.

  1. jacksu

    jacksu Guest

    Dear All,

    I created one custom control, which should takes DataTable
    as the datasource.

    I can set properties of the control, including datasource,
    but to my surprise, only those string properties will be
    saved, datasource property always disappears after build.

    I tried to put datatable name in the control's html
    property field. Got casting error.

    And at the end, I used "<%# MyDataTable %>" syntax to make
    the data passing works. Again, this can only be done in
    HTML mode.

    Just wondering why that datasource binding doesn't work in
    design mode. Can we take a peak at the source code of the
    asp default components?

    Thanks in advance.

    Jack
     
    jacksu, Mar 2, 2004
    #1
    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.