Session-VIISession-VII
User Control
Web User ControlWeb User Control
 User controls are encapsulations of sections of pages
which are registered and used as controls in ASP.NET.
User controls are created as ASCX markup files. a user
control cannot be requested independently;
 one of its containing pages is requested instead. It can
not be just be simply referenced for using in a
different project. Here we see to
 Create user control
 Register in the Webpage
 Register in Web Configuration file
User Controls:User Controls:
 User controls behaves like miniature ASP. Net pages, or web forms,
which could be used by many other pages.
 These are derived from the System.Web.UI.UserControl class. These
controls have the following characteristics.
 They have an .ascx extension.
 They may not contain any <html>, <body> or <form> tags.
 They have a Control directive instead of a Page directive.
 To understand the concept let us create a simple user control, which will
work as footer for the web pages. To create and use the user control, take
the following steps:
Web ServicesWeb Services
Web services are small units of code designed to handle a
limited set of tasks. example can be a small program
designed to handle credit card payment. Web services use
the standard web protocols:
HTTP (Hypertext Transfer Protocol) is the World Wide Web
standard for communication over the Internet.
Benefits of Web ServicesBenefits of Web Services
 Easier to communicate between applications
 Easier to reuse existing services
 Easier to distribute information to more consumers
 Rapid development
 Web services make it easier to communicate
between different applications. They also make it
possible for developers to reuse existing web
services instead of writing new ones.

Continue…….Continue…….
 Web services can create new possibilities for many
businesses because it provides an easy way to
distribute information to a large number of
consumers.
 Example could be flight schedules and ticket
reservation systems.

Session vi(user control)

  • 1.
  • 2.
    Web User ControlWebUser Control  User controls are encapsulations of sections of pages which are registered and used as controls in ASP.NET. User controls are created as ASCX markup files. a user control cannot be requested independently;
  • 3.
     one ofits containing pages is requested instead. It can not be just be simply referenced for using in a different project. Here we see to  Create user control  Register in the Webpage  Register in Web Configuration file
  • 4.
    User Controls:User Controls: User controls behaves like miniature ASP. Net pages, or web forms, which could be used by many other pages.  These are derived from the System.Web.UI.UserControl class. These controls have the following characteristics.  They have an .ascx extension.  They may not contain any <html>, <body> or <form> tags.  They have a Control directive instead of a Page directive.  To understand the concept let us create a simple user control, which will work as footer for the web pages. To create and use the user control, take the following steps:
  • 5.
    Web ServicesWeb Services Webservices are small units of code designed to handle a limited set of tasks. example can be a small program designed to handle credit card payment. Web services use the standard web protocols: HTTP (Hypertext Transfer Protocol) is the World Wide Web standard for communication over the Internet.
  • 6.
    Benefits of WebServicesBenefits of Web Services  Easier to communicate between applications  Easier to reuse existing services  Easier to distribute information to more consumers  Rapid development  Web services make it easier to communicate between different applications. They also make it possible for developers to reuse existing web services instead of writing new ones. 
  • 7.
    Continue…….Continue…….  Web servicescan create new possibilities for many businesses because it provides an easy way to distribute information to a large number of consumers.  Example could be flight schedules and ticket reservation systems.