custom controls

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ll

    #1

    custom controls

    I try to write a custom controls contain two dropdownbox..
    I have two questions here, please advice.
    1. Using ¡°Programmatic Composites¡±, the CreateChildCont rol method is
    called very early in the control¡¯s lifetime. Where is the place to
    initialize the value for the dropdownbox( for example, the selected index).
    I tried to put into the Page_Load() of the ASPX page, but Page_Load is fired
    after CreateChildCont rols?
    2. Using ¡°Render¡± way, I can see the event sequence is like this: ASPX
    Page_Load(initi alize the value¡­) ¨C Control¡¯s ¡°Render¡±, but how to
    retrieve the dropdownbox¡¯s value?

    Thanks.




Working...