CHAN Reference

Chan Home | Reference Home | Event Firing Order | web.config

   

Controls.DropDown

     
  • Name DropDown
  • CSS Class CC_DropDown
  • Types int Index, string Value, string Text

The DropDown creates a basic HTML SELECT object and has a simple series of Add methods to allow you to populate it.

Because Chan (unlike standard ASPX) does not have a built in viewstate the DropDown will forget its contents whenever the page is loaded or posted back. For this reason you will need to populate it in Page_Init(). However you are free to inherit from the DropDown and use its own Control.Init() to populate it with a set series of values, for example.