Discussion in 'ASP .Net Building Controls' started by Doug Holland, Sep 17, 2004.

  1. Doug Holland

    Doug Holland Guest

    I'm overriding

    RenderContents(HtmlTextWriter writer)

    in a control with the DropDownList control as its parent. I also have a
    private member variable:

    private ISomeInterface m_someInterface;

    m_someInterface is initialized in the constructor with an object realizing
    the interface however when I get into RenderContents m_someInterface is null.

    I know there is obviously an easy answer to this and I've not had enough
    coffee this morning, but can someone tell me how to be able to have the
    variable m_someInterface be available here.

    Setting the variable as static isn't an option because I want different
    instances of the control to have different values of m_someInterface.


    Doug Holland, Sep 17, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.