| Web-hosting related articles and advices
Friday March 19th 2010

Insider

Archives

Using Web Server Controls And HTML Server Controls In ASP.Net

visit new projects

  • All about INSURANCE
  • All Types of Sport
  • AllTimes news
  • Xtreme Sport
  • Sport Journal
  • Martial Arts
  • WorldWide Tourism
  • BUSINESS news
  • Popular news
  • There are two types of server control in ASP.NET: HTML server controls and Web server controls. HTML server controls are simply regular web elements into which the runat=”server” attribute has been added and which have been assigned an ID. The runat=”server” attribute tells the ASP.NET engine that the control can respond to events and enables developers to create event handlers to control the behaviour of the controls.

    HTML controls are useful, but Web server controls are more powerful because they are not linked to a specific HTML element and subject to its limitations. Some Web server controls are fairly simple but some of them are extremely complex. They offer black box functionality which would require fairly complex client-side and server-side coding to achieve if they did not exist. It is hardly surprising that server controls are the most frequently used component in ASP.NET.

    The great thing about Web server controls is that they allow the developer to focus on the web page functionality and user-response that he or she requires without having to worry about how this would be achieved using HTML elements. At runtime, the ASP.NET engine will generate the necessary HTML, CSS and JavaScript for each client browser.

    The calendar control is one example of the advanced functionality offered by the ASP.NET Web server controls. The developer adds this to a web page as a single component and writes code to determine how it will respond to user interaction. At runtime, the necessary HTML markup is produced, saving the developer hours of coding and testing.

    Another example of a sophisticated, time-saving Web server control is the FileUpload control. This allows you to add a browse and upload facility to any web page with very little coding. Similarly, the MultiView and View server controls are used in conjunction to control the visibility of different parts of a page. Each view contains different content and the end user is able to move through the views in the sequence specified by the developer.

    Wizards are a very popular feature in Microsoft Office and other software programs and ASP.NET offers a Web server control that allows you to add this same functionality to a web page. The Wizard server control enables you to set up a series of steps which will be presented to your user in the order you specify. It is ideal for building forms where information is gathered in a series of steps rather than overwhelming the user with one single, huge form. The Wizard control is similar to the MultiView and View controls but offers a far greater degree of customization.

    The writer of this article conducts ASP.NET training courses and JavaScript training throughout the UK.

    *

    -

    Read also related posts:

    1. Why is experience important for a PSD to HTML company?
      ***When you are choosing your PSD to HTML company you must never ignore the experience of the company as one of the main selection criteria. You cannot expect a company to offer the best PSD to HTML conversion services without experience. If they have only limited experience, they will be able to handle only simple [...]...
    2. Using The ASP.NET GridView Control
      *** The display of information from a database is a fairly standard requirement on most websites and, in some development environments, it can take a fair amount of programming to achieve. In ASP.NET, however, it is remarkably easy, thanks to the use of built-in data-bound controls. There are two types of data-bound controls: those which are [...]...
    3. Whether or not to have a dedicated server?
      ***Deciding on whether to have a dedicated server for your internet business is often all down to size. This does not mean that dedicated servers are only for large businesses however, some companies need wide bandwidths, ranging from 500 gigabytes upwards to run their business successfully. High reliability is the key for all internet [...]...
    4. Why choose a dedicated server?
      A dedicated server will provide the solution to all your hosting requirements and is the answer to anyone who wants high reliability combined with total security and great performance. Having your own server means that you have total control over the applications that you host- without worrying about other account holders.Choosing a dedicated server will [...]...
    5. Why The Need For A Dedicated Server?
      ***Dedicated hosting allows individuals and business to let out pre-configured, connectivity and state-of-the-art equipment from a hosting service provider. Rather than simply sharing server space on a virtual server, dedicated hosting gives you the prospect to lease an entire server for your own exclusive use. This can take a lot of technical strain off the [...]...