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. 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. =?Utf-8?B?Um9zbWFuIENvbXB1dGluZw==?=

    Cannot bind to tcp/ip

    =?Utf-8?B?Um9zbWFuIENvbXB1dGluZw==?=, Sep 23, 2005, in forum: Wireless Networking
    Replies:
    1
    Views:
    2,613
    Malke
    Sep 23, 2005
  2. =?Utf-8?B?UGFwcmkgQ2hha3Jhdm9ydHk=?=

    Dataset - Error

    =?Utf-8?B?UGFwcmkgQ2hha3Jhdm9ydHk=?=, Jun 9, 2004, in forum: MCSD
    Replies:
    2
    Views:
    854
    Daniel Joskovski
    Jun 9, 2004
  3. fullblown
    Replies:
    0
    Views:
    1,207
    fullblown
    Sep 20, 2006
  4. vbcheerful

    large dataset to xml in vb.net

    vbcheerful, Apr 9, 2008, in forum: Software
    Replies:
    0
    Views:
    1,351
    vbcheerful
    Apr 9, 2008
  5. OhioHoya

    dataset reading XML error...

    OhioHoya, Apr 26, 2010, in forum: General Computer Support
    Replies:
    0
    Views:
    1,594
    OhioHoya
    Apr 26, 2010
Loading...

Share This Page