120 likes | 153 Views
This guide by Jonas Stawski covers developing web server controls, their categories (rendered and composite), and the process of creating them. It explains the differences between user controls and web server controls, highlighting the benefits of using web server controls for RAD, Enterprise Graphical Components, and standard .NET development.
E N D
A Guide To Developing Web Server Controls By Jonas Stawskijstawski@aspsoft.comhttp://aspsoft.blogs.com/jonas/
Web Server Controls What are they?
What are web server controls • A class • Derives from WebControl • Are used to represent html as objects • Label = <span> • Table = <table> • TableCell = <td> • Textbox = <input type=“text” • Two Categories: • Rendered (Label, Textbox, etc) • Composite (Treeview, Calendar, etc)
What is not a web server control? • User Controls
Web Server Controls Why use them?
Why use them? • RAD (Rapid Application Development) • Enterprise Graphical Components • Standard within .NET • Facilitate the work for others
Web Server Controls Difference between user control and web server control
Web Server Controls Demos
Web Server Controls How to create a web server control?
How to create a web server control? • Create a new project from class • Inherit control from WebControl or any other control (for extending it) • implement INamingContainer (for composite controls) • Override functions: • CreateChildControls (for composite controls) • Render • Compile • Add to toolbox