Describe .NET form.What is a form?
- It is a bit of screen real estate, that can use to represent information to the user and to accept input from the user.
- Forms can be standard windows, multiple document interface (MDI) windows, dialog boxes or display surfaces that expose routines.
- The easiest way to define the user interface for a form is to place controls on its surface.
- Forms provide a User Interface (UI) to give the applications a look and feel.
- Forms provide properties, methods, and events for the controls they contain.
- In Microsoft Visual Studio .NET, there is drag-and-drop facility for creating Web applications.
Forms have two components associated with them: 1. The UI with controls 2. The code behind the form
Features of .NET Forms:
1. Server controls: - Server controls are objects on .NET web pages that run when the page is requested and that render markup to the browser.
2. Master pages: - Master pages allow to create a consistent layout for the pages in your application.
3. Working with data: - It provides many options for storing, retrieving and displaying data.
4. Security: - Developing a more secure application to understand the threats.
5. Debugging and error handling: - Helps you to diagnose the problems that might arise in your web forms application.
Advantages of .NET Forms:
- It supports an event model that preserves state over HTTP.
- It uses view state or server based forms, which can make managing state information easier.
- It uses a Page Controller pattern.
- It works for small teams of web developers and designers.
- It is less complex for application development.
|