Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > MCSD > Custom control DataSet bind issue

Reply
Thread Tools

Custom control DataSet bind issue

 
 
jacksu
Guest
Posts: n/a
 
      03-02-2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
confused by boost::bind & boost::lambda::bind XHengDF@gmail.com C++ 0 05-29-2007 04:37 AM
bind menu control with a dataset cipcip ASP .Net 0 04-10-2006 05:37 PM
Using a data-bind dropdownlist to populate another data-bind dropdownlist mr2_93 ASP .Net 1 10-02-2005 05:07 PM
custom datagrid control bind? dave ASP .Net Building Controls 1 02-04-2004 06:27 AM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM



Advertisments