design-time rendering doesn't happen unless properties changed

Discussion in 'ASP .Net Building Controls' started by Oleg Ogurok, Jul 11, 2003.

  1. Oleg Ogurok

    Oleg Ogurok Guest

    Hi all,

    I've created a custom control derived from WebControl. Inside its
    RenderContents() I render bunch of child controls.
    For some reason, when I drag and drop the control from toolbox on an aspx
    page, it's displayed as:

    [ MyControl "MyControl1" ]

    Only when I resize it or change one of its propertes, the control is
    rendered according to its RenderContents() method. How can I force my
    control to be rendered when I drop it on the page?

    Thanks,

    Oleg.
     
    Oleg Ogurok, Jul 11, 2003
    #1
    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.