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?

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. Earl Teigrob
    Replies:
    0
    Views:
    552
    Earl Teigrob
    Jul 7, 2004
  2. Chris Newby
    Replies:
    1
    Views:
    542
    Vaibhav
    Feb 25, 2005
  3. Jonah Olsson
    Replies:
    1
    Views:
    744
    Scott Allen
    Apr 5, 2005
  4. farmer
    Replies:
    2
    Views:
    538
    farmer
    Oct 24, 2005
  5. J R M
    Replies:
    2
    Views:
    603
    Charlie@CBFC
    Jun 1, 2006
  6. gerry
    Replies:
    0
    Views:
    449
    gerry
    Jul 22, 2008
  7. Matt Sokol
    Replies:
    2
    Views:
    606
    Theo Tillotson
    Aug 7, 2003
  8. Jonah Olsson
    Replies:
    2
    Views:
    357
    Jonah Olsson
    Apr 5, 2005
Loading...