Custom container control

Discussion in 'ASP .Net Building Controls' started by exoz, Dec 3, 2008.

  1. exoz

    exoz Guest

    Hi,

    I am trying build a custom control which will have one or more template
    areas within. Although compilation is successfull, during runtime; some
    controls within the template area becomes nothing (null).. First, some
    panels were becoming nothing; when I made a second postback, they got their
    designated "PANEL" value. But still some textboxes are becoming nothing.
    What are the necessary steps to ensure that all controls within a template
    area will be filled (will not become nothing) when writing a custom
    container control?

    Thank you...
    exoz, Dec 3, 2008
    #1
    1. Advertising

  2. exoz

    exoz Guest

    Hi again,

    We solved the problem just add EnsureChildren to the overriden OnInit
    function.

    Thank you...



    "exoz" <> wrote in message
    news:...
    > Hi,
    >
    > I am trying build a custom control which will have one or more template
    > areas within. Although compilation is successfull, during runtime; some
    > controls within the template area becomes nothing (null).. First, some
    > panels were becoming nothing; when I made a second postback, they got
    > their designated "PANEL" value. But still some textboxes are becoming
    > nothing. What are the necessary steps to ensure that all controls within a
    > template area will be filled (will not become nothing) when writing a
    > custom container control?
    >
    > Thank you...
    exoz, Dec 3, 2008
    #2
    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. farmer
    Replies:
    2
    Views:
    459
    farmer
    Oct 24, 2005
  2. Vivi Orunitia
    Replies:
    11
    Views:
    4,473
    Martijn Lievaart
    Feb 4, 2004
  3. Maitre Bart
    Replies:
    2
    Views:
    521
    Maitre Bart
    Feb 11, 2004
  4. Steven T. Hatton
    Replies:
    4
    Views:
    3,896
    Rob Williscroft
    Dec 5, 2004
  5. Matt Sokol
    Replies:
    2
    Views:
    379
    Theo Tillotson
    Aug 7, 2003
Loading...

Share This Page