Microsoft Web Forms and Visual Basic
The ASP.NET Web Forms are part of the web application framework included with Visual Studio. Web Forms are pages written using a combination of HTML, Client-script and Server code. Each page is compiled and executed on the Server, and HTML mark-up is generated to run on the Client Browser.
The ASP.NET Web Forms are compatible with any Browser or mobile device.
The Visual Studio Integrated Development Environment (IDE) allows drag and drop to display Server controls on a Web Form page. Properties, methods, and events can be set for the controls on the page to define their behaviour on the page. Visual Basic code is written to handle the logic for each page or control, on the Server.
This Website was created using Web Forms and Visual Basic.
The features of ASP.NET Web Forms
Web Forms and ASP.NET were created to overcome the limitations of the old ASP technology. The features of ASP.NET include support for Microsoft Visual Basic and compiled code:
- There is a separation of the HTML user interface from the Visual Basic logic
- There is a rich set of Server-side controls that detect the Browser and issue the appropriate HTML
- Minimal Visual Basic code is needed due to to initiate the Server-side controls
- Visual Basic can handle security, debugging, error handling and state management
- Event-based Visual Basic programming is provided by the Server controls
- Web developers benefit from using Visual Basic and the rapid application development (RAD)
- Performance is a key factor in a successful Web site. ASP.NET Web Forms allows optimisation of the performance factors related to page and Server processing.
- Search engine optimisation (SEO) is important for a Website. The Title, Meta Keywords and Meta Description can be set at the page level, as well as in Visual Basic code. View State can be turned off when not needed.
How ASP.NET Web Forms speeds up Website creation
Use the RAD features of Web Forms to create a Website in the least time, that performs well, has excellent SEO capabilities and with page design that is consistent.
- A Server has no memory of pages that it has processed – pages are stateless. In the ASP.NET page framework the state is automatically handled. This is accomplished with minimal resources and without sending cookies to the Browser.
- The ASP.NET page framework enables all application logic to be created on the Server, eliminating the need to code for different Browsers. Client-side code can still be used to provide specific Browser features.
- Data access is simplified using the infrastructure provided by the Dot NET Framework – which includes ADO.NET.
- ASP.NET Web Forms bring to Web applications the familiar model of event handlers, either on the Client or Server. The result is a clear, easily written Visual Basic code structure.
- The ASP.NET page framework scales well – enabling a move from a single processor to a multi-processor Web farm without any change to the Website.
- An ASP.NET Master page allows Website pages to be created with a consistent layout and behaviour. ASP.NET merges content pages and Visual Basic code with the master page to produce the HTML user interface.
For more details of the features of Web Forms, see Microsoft's ASP.Net Web Forms