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. Advertisements

  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. Advertisements

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.
Similar Threads
  1. Earl Teigrob
    Replies:
    0
    Views:
    623
    Earl Teigrob
    Jul 7, 2004
  2. Chris Newby
    Replies:
    1
    Views:
    593
    Vaibhav
    Feb 25, 2005
  3. Jonah Olsson
    Replies:
    1
    Views:
    857
    Scott Allen
    Apr 5, 2005
  4. farmer
    Replies:
    2
    Views:
    588
    farmer
    Oct 24, 2005
  5. J R M
    Replies:
    2
    Views:
    702
    Charlie@CBFC
    Jun 1, 2006
  6. gerry
    Replies:
    0
    Views:
    485
    gerry
    Jul 22, 2008
  7. Matt Sokol
    Replies:
    2
    Views:
    717
    Theo Tillotson
    Aug 7, 2003
  8. Jonah Olsson
    Replies:
    2
    Views:
    428
    Jonah Olsson
    Apr 5, 2005
Loading...