asp+| Programming | server | control | syntax | server | control/*
Article Source: http://www.aspCool.com reprint Please specify, thank you!
*/
Using a custom server control
With 45 server controls available in asp+, we can use them like black boxes. In addition, developers can also use any Third-party-developed server controls
In the following example, we use a component that is declared through the <acme:calendar runat=server> label, note that the prefix of the "Acme Xml" label must be declared in the first line of the file using the <% Register%> Acme ". In the asp+ file, an instance of the class of this named server control will be used.
Code: (Due to the restrictions of input, there is no way, the details can go to http://www.aspcool.com)
The demo of this example
Http://tutorial.superexpert.com/quickstart/aspplus/samples/webforms/intro/intro7.aspx
This calendar server control can support both advanced and low-level browsers, and for advanced browsers, he generates DHTML code on the client, and DHTML documents do not need to interact with the server! For low-level browsers, the standard HTML 3.2 code is generated, which requires interaction with the server to handle user actions on the browser client
Note: Developers of this page's code do not need to care whether the client's browser is advanced or low-level in the process of writing. The Calendar control itself handles the differences between two browsers
Next, we will enter the asp+ Operation Database section, please feel free to pay attention to our site update!