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" );