Features of
Features of
NET FEATURES
ASP.NET offers three frameworks for creating web
applications:
WEB FORMS
ASP.NET core,
ASP.NET MVC,
ASP.NET Web Forms: contain various web pages and GUI applications such as text box,
data grid, label, checkbox, hyperlink, etc. It provides flexibility to web pages at run time as
well as design time.
ASP.NET Web Pages: These are the single page application which can be merged into
ASP.NET Core. ASP.NET API: It is the Web Application Programming Interface(API)
Here are some key features and concepts of ASP.NET Web Forms:
Visual Design and Drag-and-Drop Controls: Web Forms provide a visual design surface in which you can drag and drop various
web controls (such as text boxes, labels, buttons, data grids, etc.) onto the page. This allows developers to design the user interface
without writing extensive HTML and JavaScript code manually.
Event Model: Web Forms introduce an event-driven programming model. You can define server-side event handlers for various
user interactions, like button clicks or dropdown selections. This makes it easy to respond to user actions and execute server-side
logic.
State Management: Web Forms offer built-in state management mechanisms to preserve data across postbacks (interactions
between the client and server). ViewState and Control State are two methods to maintain the state of controls and data on the
page.
Separation of Concerns: While Web Forms encourage mixing HTML and code, you can still achieve a degree of separation of
concerns by using code-behind files. These files allow you to write the server-side logic separately from the visual design.
Rich Server Controls: ASP.NET Web Forms provide a wide range of server controls that encapsulate complex functionality.
These controls emit HTML and JavaScript but abstract much of the underlying complexity. Examples include the GridView
control for displaying tabular data and the FormView control for displaying a single record.
Master Pages: Web Forms support master pages, which enable you to create a consistent layout and design for multiple pages in
your application. Master pages allow you to define a common structure, headers, footers, and navigation menus.
Validation Controls: ASP.NET Web Forms include validation controls that make it easy to perform client-side and server-side
data validation. These controls help ensure that user input is accurate and complete before processing i
Model-View-Controller (MVC) Pattern:three main components: Model, View, and
Controller. This separation promotes modularity, maintainability, and testability.
Model: Represents the application's data and business logic. It encapsulates data access,
manipulation, and validation.
View: Represents the user interface elements and presentation logic. It displays the data to
the user and handles user interactions.
Controller: Acts as an intermediary between the Model and View. It handles user input,
ASP.NET WEB FORMS FEATURES ASP.NET