+ All Categories
Home > Documents > Expert.NET Development A Guide To Developing Web Server Controls By Jonas Stawski...

Expert.NET Development A Guide To Developing Web Server Controls By Jonas Stawski...

Date post: 18-Dec-2015
Category:
Upload: sabrina-bates
View: 214 times
Download: 0 times
Share this document with a friend
Popular Tags:
12
Expert .NET Development A Guide To Developing Web Server Controls By Jonas Stawski [email protected] http://aspsoft.blogs.com/jonas/
Transcript

Expert .NET Development

A Guide To Developing Web Server Controls

By Jonas [email protected]

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>– 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

Difference between user control and web server control

Web Server Control User Control

Enterprise Local to an application

No UI Ascx file with Graphical Interface

Exposes design and run time properties

Exposes run time properties

Useful for composite control and single control

Better used for multiple controls

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

Thank You


Recommended