2. OUTLINE
• Concept of Dot Net Framework?
• Dot Net Framework Concept Vs
Java Concept
• Concept and purpose of Controls.
• Types of Controls
• HTML Server Controls
• Webforms ServerControls
• Validation Controls
• Other Controls
3. • DOT NET FRAMEWORK is an add-on
software over the operating system.
• It provides the library of software
functions (Called Classes) that can be
called from the application software to
get the desired functionality.
• It provides a unique feature to support
multiple language such as C#,
Visual Basic and many more by
providing compilation facilities for them.
• It provides compilation of user’s
application to an intermediate language
(Common Intermediate Language –
CIL) so that it is largely platform
independent.
Concept of DOT NET Framework - 1
Hardware
Operating System
Dot Net Framework
Application Code
CIL
M/C L
4. • By itself it follows a layered architecture to
provide various services.
• Common Language Runtime (CLR) to
understand the CIL, memory management,
security and exceptions.
• Base Class Library (BCL) to provide the basic
functionality of User Interface, Data Access,
Algorithms, Networking etc.
• WinForms for forms provided by console
applications or single machine applications.
• ASP.Net for web related functionality.
• ADO.NET for database access related
functionality.
• More components have been added in
recent releases of this stack that shall be
discussed in the advanced courses.
DOT NET Framework Stack
Common Language Runtime
Base Class Library
Win
Forms
ASP
.NET
ADO
.NET
DOT NET Framework Stack
5. • Concept of DOT Net is quite similar to Java Virtual Machine
Concept. The primary difference however was to focus on
language independence rather than platform independence.
DOT NET Framework Vs. Java
Hardware
MS Operating System
Dot Net Framework
Any Language
Application Code
CIL
M/C L
Hardware
Any Operating System
Java Virtual Machine
Java
Application Code
Bytecode
M/C L
Microsoft Dot Net Sun Java
6. Concept and Purpose of Controls
• Controls are prewritten library classes provided by the
language for providing predefined parameters to be
handled by them.
• Controls ease-up many day to day tasks for a
programmer. For e.g. a Text Box defines a predefined
area with predefined font and colors etc to enter some
text by the application user. What can be further
configured by a programmer in a control is also defined.
• Most common user interfaces are designed using forms
that are full of controls like Label, Text Box, Check Box,
Radio Control, Button, Text Area, Selection List Etc.
• Controls are also the most common components that a
programmers deal in day to day life.
• Concept of controls can be further extended to custom
defined logic building, such one may find a control to
convert Centigrade to Fahrenheit
7. • The main controls provided by
ASP.NET are:
– HTML Server Controls
– Webforms Server Controls
– Validation Controls
• In the advanced sections we shall
also see that ASP.NET provides a
facility of creating User’s own control
by using any combination of current
controls or completely a new control.
Major Types of ASP.NET Controls
We shall try to focus on server end controls. Client end controls are
basically provided by HTML syntax itself.
8. • These controls are similar in construct with the regular HTML
style forms features. The main difference is however that
these controls are interpreted and converted at the server
end itself.
• For e.g.
<a id="link1" runat="server">Visit Sunmitra Site</a>
would be an HTML Server control while
<a href=www.sunmitra.com>Visit Sunmitra Site</a>
would be an regular HTML syntax.
• In first case the id and runat attribute relate to running it at
server end and thus href declaration will also be made
separately in the programme code.
• Other HTML server controls are for button, checkbox,
radiobutton, image, table,textarea etc.
HTML Server Controls
9. • These controls are exclusively defined by ASP.NET library
only.
• Things like AdRotator, Calendar, Datalist, ListBox, XML,
Imagebutton and extended forms of Table, CheckBox,
Radiobutton etc are classified here.
• Here ASP.NET designers have taken full liberty to design
their own set of attributes that may be quite different from
HTML syntax.
• These controls provide the real power to web-based forms
designing.
• Remember that even these controls will finally be depicted
on the web browser side using standard HTML syntax only.
Webforms Server Controls
10. • These controls provide an easy way for form entry validations that was earlier
required to be provided by client side programming such as javascript etc.
• For e.g. syntax like below
<asp:RangeValidator
ControlToValidate="tbox1"
MinimumValue="1"
MaximumValue=“60"
Type="Integer"
Text="The value must be from 1 to 60!"
runat="server" />
Can validate that a user fills the value between 1 to 60 only.
• Actually a validation control is a neat way to tell the server to automatically
add the required client side script (usually the javascript) before sending the
data towards the browser.
• The validation control is powerful as it is efficient and saves a lot of server time
to check petty things that can be done at the client end itself.
Validation Controls
11. Other Controls
• There is a big range of other controls that are
available free or paid from 3rd party developers.
• These include things like
– Colour selection.
– Multiline Text Editing.
– Image Editing.
– Progressbar
– Tickers.
– Imagecombobox.
– Map Controls.
– Mediaplayer controls.
– Popupmenus.
– Graph Displays etc.
12. • Ask and guide me at
sunmitraeducation@gmail.com
• Share this information with as
many people as possible.
• Keep visiting www.sunmitra.com
for programme updates.