Custom DataSourceControl example

Last post 07-24-2007 9:39 PM by akaKlen. 2 replies.

Sort Posts:

  • Custom DataSourceControl example

    07-24-2007, 8:43 PM
    • Member
      91 point Member
    • akaKlen
    • Member since 10-07-2004, 3:17 AM
    • Posts 41

    Hi!

    While developing my current project I need to create a custom DataSourceControl and I couldn't find good enough info about this in Microsoft's help nor anywhere else. There is something about selecting data in DataSourceView.ExecuteSelect but what about insert and update? About DataSource and DataView interactions?

    The best to have would be SqlDataSource source code!

    If anybody has a link or an example it'd be appreciated.

    Alex

    Filed under:
  • Re: Custom DataSourceControl example

    07-24-2007, 9:22 PM
    • Star
      12,126 point Star
    • shados
    • Member since 07-07-2006, 11:24 PM
    • Posts 2,202

    There is documentation around, but its hard to find. I don't have first hand experience, but I remember reading Frans Bouma's blog stating that it was total hell to find (must be better by now since it was a while ago, but still...)

    That being said, "The best to have would be SqlDataSource source code". You're in to something here. Do you know about Reflector? Its a free tool that lets you decompile .NET assemblies. I've used it to compensate for the insane lack in documentation about how to make custom SSIS controls. Maybe it will help you find what you need by decompiling SqlDataSource's assembly... (You'll have to dig for it in the GAC though, warning you!)

  • Re: Custom DataSourceControl example

    07-24-2007, 9:39 PM
    • Member
      91 point Member
    • akaKlen
    • Member since 10-07-2004, 3:17 AM
    • Posts 41

    Thanks! I guess the Reflector is the only way to get the 'documentation'.

Page 1 of 1 (3 items)