Problem Inheriting from DropDownList

Discussion in 'ASP .Net Web Controls' started by Doug Holland, Sep 8, 2004.

  1. Doug Holland

    Doug Holland Guest

    I'm writing a custom DropDownList control which has a constructor of the form:

    public SomeDropDownList(ISomeInterface someInterface)
    {
    m_object = someInterface;
    }

    I then override the OnPreRender method however when I get into the
    OnPreRender method m_object is null.

    Any suggestions?

    Regards,

    Doug Holland
     
    Doug Holland, Sep 8, 2004
    #1
    1. Advertisements

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. Replies:
    0
    Views:
    565
  2. Replies:
    1
    Views:
    349
    Gabriel Genellina
    Jun 13, 2007
  3. Wolfgang
    Replies:
    2
    Views:
    451
    Wolfgang
    Nov 11, 2007
  4. SpaceMarine

    problem while inheriting a UserControl base

    SpaceMarine, Oct 4, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    466
    SpaceMarine
    Oct 4, 2008
  5. Nathan Sokalski
    Replies:
    1
    Views:
    530
    PJ on Development
    Oct 17, 2008
  6. Swati

    Problem inheriting from the list control

    Swati, May 12, 2005, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    157
    Teemu Keiski
    May 13, 2005
  7. ashish_gokhale

    Inheriting from dropdownlist

    ashish_gokhale, Feb 2, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    161
    ashish_gokhale
    Feb 2, 2005
  8. Nathan Sokalski

    Cannot use ListItems when inheriting from DropDownList

    Nathan Sokalski, Oct 17, 2008, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    219
    PJ on Development
    Oct 17, 2008
Loading...