120 likes | 148 Views
A Guide To Developing Web Server Controls. By Jonas Stawski jstawski@aspsoft.com http://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>
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