CHAN Reference

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

   

Controls.Button

     
  • Name Button
  • CSS Class CC_Button
  • Type NA

The button is a simple but versatile control, in it's least-configured state it will cause the page to post-back, (a Submitting button). But it can be overloaded to perform simple navigation, execute javascript and even be skinned as an image.

It is also the only control within Chan to handle server side events, a Submitting button can have its Click event bound to a function which will be executed immediately after the Page_Load() function.

Roadmap

  • Needs a lot of breaking refactoring including renaming the Link property to Href and giving the user an explicit choice between wether or not it posts back. rather than checking if Link="" and onclick doesn't startwith "return"!
  • Clean up rendering code, implimenting the above should make this easier