Page 64 - DCAP312_WEB_TECHNOLOGIES_II
P. 64
Web Technologies-II Sarabjit Kumar, Lovely Professional University
Notes Unit 4: Advanced Server Controls
CONTENTS
Objectives
Introduction
4.1 HTML Server Controls
4.1.1 Advantages of using HTML Server Controls
4.1.2 Difference between Web Server Control and Html Server Control
4.1.3 HTML Server Controls Advantage
4.1.4 Html Server Controls Disadvantage
4.2 Validation Controls
4.2.1 Understanding the Difference between Server-Side and Client-Side Validation
4.2.2 .NET to the Rescue
4.3 Summary
4.4 Keywords
4.5 Review Questions
4.6 Further Reading
Objectives
After studying this unit, you will be able to:
• Define HTML server controls
• Explain validation controls
Introduction
Server joystick is an integral aspect of each ASP.NET function we construct. They encapsulate
browser appearance and server functionality in a reusable entity. They can be used across multiple
pages within a single ASP.NET application as well as across multiple ASP.NET applications.
ASP.NET comes with a lot of prebuilt server controls. We have simple controls such as the label
and we have complex controls such as the Grid View. We also have the ability to create our
own server controls to meet a need not met by one of the existing controls by inheriting from
the appropriate base class and overriding its methods as needed.
This model of using server controls to encapsulate browser appearance and server functionality
has served our needs well since the inception of ASP.NET 1.0, but our server control needs are
changing. A new server control need that has recently surfaced is the ability to incorporate Ajax
functionality directly into the server control.
This requires arose because our web applications need to be more receptive and visually
interactive than the conventional ASP.NET repaint-the-entire-screen model and therefore the
conventional server control supplies. This requirement has emerged because users are using
web sites such as Gmail, Live.com, Yahoo! Mail, and others that do not repaint the screen every
time they click a button or need to receive fresh data. Rather, they rely on Ajax to fetch fresh
data and then update or add to a portion of the screen based upon that data. Because these web
sites are heavily used and users really enjoy their experience while using these websites they
58 LOVELY PROFESSIONAL UNIVERSITY