ASP .NET
1
WHY WORK ON
ASP.NET
•
EARLIER TECHNOLOGIES
USED SCRIPTING
LANGUAGES
•
USE OF LANGUAGES LIKE :
C#,VB
•
CODE FOR INTERFACE
•
•
CODE FOR APPLYING
VALIDATION AT CLIENT
SIDE
DRAG AND DROP
MECHANISM
•
CONTROLS AVAILABLE TO
APPLY CLIENT SIDE
VALIDATION
•
CODE READABILITY
COMPLEX (AS CODE AND UI
INTERMINGLED)
•
SEPARATE AREA FOR
CODING AND UI
2
KEY FEATURES
•
•
•
•
•
WEB FORMS
WEB SERVICES
SIMPLE PROGRAM MODE
SEPERATION OF CODE AND UI
SIMPLIFIED FORM VALIDATION
3
ASP SERVER CONTROLS
• ASP.NET SHIPS WITH 50 BUILTIN CONTROLS
• THEY ARE ORGANISED INTO
LOGICAL FAMILIES
• WEB CONTROLS HAVE ASP PREFIX
EG:: <ASP:BUTTON ID=“BTNNAME”>
4
TYPES OF CONTROLS
INTRINSIC CONTROLS
LIST CONTROLS
RICH CONTROLS
VALIDATION CONTROLS
5
INTRINSIC CONTROLS
o TEXTBOX

SINGLE LINE

MULTI LINE

PASSWORD
o CONTROL TRANSFER

BUTTON

HYPERLINK

IMAGE BUTTON

LINK BUTTON
6
SELECTION CONTROLS
DROPDOWNLIST BOX
LIST BOX
CHECK BOX
CHECK LIST BOX
RADIO BUTTON
RADIO BUTTON LIST
7
RICH CONTROLS
 CALENDER CONTROL
RICH
CONTROLS
 ADROTATOR CONTROL
IT IS THE
COMBINATION
OF DIFFERENT
CONTROLS.
8
VALIDATION CONTROL
 REQUIRED FIELD VALIDATOR
 CUSTOM VALIDATOR
 REGULAR EXPRESSION VALIDATOR
 COMPARE VALIDATOR
 RANGE VALIDATOR
 VALIDATION SUMMARY
•
CONTD…
9
VALIDATION CONTROLS
• CONTAIN TEXT WHICH IS DISPLAYED
ONLY IF VALIDATION FAILS.
• IT HAS A TEXT PROPERTY WHICH IS
DISPLAYED AT CONTROL LOCATION.
• IT HAS AN ERROR PROPERTY WHICH IS
DISPLAYED IN SUMMARY.
10
REQUIRED FIELD VALIDATOR
ATTACH ONE TEXT BOX
FILL CONTROL TO
VALIDATE PROPERTY
ENSURES THAT THE VALUE IS ENTERED
INTO THE TEXTBOXES .
11
COMPARE VALIDATOR
ATTACH ONE TEXT BOX
FILL CONTROL TO
VALIDATE PROPERTY
FILL CONTROL TO
COMPARE PROPERTY
COMPARES VALUE AGAINST CONSTANT, ANOTHER
CONTROL OR DATATYPE.
12
REGULAR EXPRESSION VALIDATOR
ATTACH ONE TEXT BOX
FILL EXPRESSION
PROPERTY
TESTS IF VALUE MACHES A PATTERN.
13
RANGE VALIDATOR
ATTACH ONE TEXT BOX
FILL MAXIMUM
AND MINIMUM
VALUE
CHECKS IF VALUE IS WITHIN MINIMUN
AND MAXIMUM VALUES.
14
VALIDATION SUMMARY
DISPLAYS LIST OF VALIDATION ERRORS IN ONE PLACE. .
15
SUMMARY
• KEY FEATURES OF ASP.NET.
• LOGICAL GROUP OF SERVER
CONTROLS.
• VALIDATION OF WEB FORMS
USING VALIDATION CONTROLS.
16
THANK YOU !!!!
17
Descargar

ASP .NET - BeKnowledge