Extending Drop Down List

Discussion in 'ASP .Net Building Controls' started by Amit, Nov 9, 2005.

  1. Amit

    Amit Guest

    Hi Friends,

    I am trying to extend Drop Down list by adding few properties. What i did is
    i inherited the DropDownList class and added few properties to my class. Now
    i want to change the data Source as well. My goal is to set the dataSource
    from the control tag without writing any code on the page that implements
    the Control.
    <custom:DDL id="ddl" runat="server" CustomProperty="true"
    DataSource="MyDataSource" DataTextField="Test" DataValueField="Val">.

    Please help me with this.

    Thanks in Advance
    Amit
     
    Amit, Nov 9, 2005
    #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. SirPoonga
    Replies:
    2
    Views:
    804
    Ben Strackany
    Jan 7, 2005
  2. weiwei
    Replies:
    0
    Views:
    1,050
    weiwei
    Jan 5, 2007
  3. msimmons
    Replies:
    0
    Views:
    524
    msimmons
    Jul 16, 2009
  4. Replies:
    5
    Views:
    303
  5. Replies:
    3
    Views:
    315
Loading...

Share This Page