Show navigation | Frontpage | Contact us | Sitemap

User Control Samples

Below are a few samples that demonstrate the use of User Controls in Composite.

To invoke the samples, create a text file in the /UserControls directory of your Composite site, paste the source code into the file, and write $$USERCONTROL( Path="<filename>" ); (where <filename> is the name of the file you created) on a Composite page. Viewing the page will render the User Control. The file you create must have the extension ".ascx".

  • HelloWorld.ascx
    Writes "Hello World!"
  • HelloWorldButton.ascx
    Demonstrates postback events - writes "Hello World" when a button is clicked.
  • SimpleState.ascx
    Simple demo that demonstrates ASP.NET postback and state
  • ListAttributes.ascx
    Demonstrates how to access custom parameters specified on the $$USERCONTROL(path=...); Identifer. Add aditional parameters to the parameter list to see the effect.
  • RedirectToUrl.ascx
    $$USERCONTROL( Path="RedirectToUrl.ascx", Url="composite-4.htm" );

My modules


© 2008 Composite A/S, Danmark
Tlf: +45 39 15 76 00 | info@composite.net
Composite A/S er Microsoft Certified Partner
Composite CMS overholder standarden for valid CSS
Composite CMS overholder standarden for valid XHTML 1.0
Printet fra http://www.composite.net/user_control_samples.htm
Findes på denne sti: Composite Developer | 3.x technologies | ASP.NET | Embedding ASP.NET User Controls | User Control Samples