Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Web Form Fundamentals

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 57

Web form fundamentals

Introduction
• It is a web framework designed and developed by
Microsoft. It is used to develop websites, web
applications and web services. It provides
fantastic integration of HTML, CSS and JavaScript.
It was first released in January 2002. It is built on
the Common Language Runtime (CLR) and allows
programmers to write code using any supported
.NET language.
• ASP.NET is a part of Microsoft .NET Framework.
ASP.NET provides three development
styles for creating web applications:
• Web Forms
• ASP.NET MVC
• ASP.NET Web Pages
Web Forms

• It is an event driven development framework.


It is used to develop application with powerful
data access. It provides server side controls
and events to create web application. It is part
of the ASP.NET framework.
ASP.NET MVC

• It gives us a MVC (Model View Controller),


patterns-based way to build dynamic
websites. It enables a clean separation of
concerns and that gives you full control over
markup for enjoyable, agile development. It
also provides many features that enable fast
development for creating outstanding
applications.
ASP.NET Web Pages

• It is used to create dynamic web pages. It provides fast and


lightweight way to combine server code with HTML. It helps to add
video, link to the social sites. It also provides other features like you
can create beautiful sites that conform to the latest web standards.
• All these are stable and well equipped frameworks. We can create
web applications with any of them. These are also based on the
.NET Framework and share core functionalities of .NET and ASP.NET.
• We can use any development style to create application. The
selection of style is depends on the skills and experience of the
programmer.
• Although each framework is independent to other, we can combine
and use any of that at any level of our application. For example, to
develop client interaction module, we can use MVC and for data
control, we can use Web Forms.
ASP.NET Components
ASP.NET Web Forms Features

ASP.NET is full of features and provides an awesome platform


to create and develop web application. Here, we are
discussing these features of Web Forms.
• Server Controls
• Master Pages
• Working with data
• Membership
• Client Script and Client Frameworks
• Routing
• State Management
• Security
• Performance
• Error Handling
How ASP.NET works
Browser client
Internet
Browser - Client

Web server

Browser request
Managed code and postback
data

ASP.NET
Page derived
and custom html
objects
How it work
Creating Websites
Creating an empty app
Server control hierarchy
Type of Server control

1. Any control is a object. In a page


one or more server controls for ex.
Button and label.
2. Asp.net provides two set of server
side controls.
1. HTML server control
2. Web server control
HTML server controls

1. These are standard HTML elements. It helps to


migrate from an ordinary HTML page to ASP.NET
2. We have twenty distinct HTML server control
classes. controls are divided into categories
based on whether they are input controls or can
contain other controls.
Common properties of HTML server
control
• Attributes : we can access or add attributes in
the control tag.
• Disabled : we can set or reset the state of a
control. If true , control and is not usable.
• Style : A collection of CSS attributes that are
applied to the control.
• Tag Name : gives the control’s tag name such
as a image(img).
Web server controls
Continue...
• The HTML controls have certain limitations and that
changes is not applied until the page is posted on to
server.
• These issues are solved by ASP.Net with the use of a
higher-level web control model.
• Web controls are defined in the system.
• Syntax: <aspx: controlname ID=“someid”
Runat=“server”>
• The control has two attributes ID and Runat
• ID: uniquely identify a control on the page
• Runat: control that live on the server
Using Page Class
Global.asax response request
scenario
Configuring ASP.NET Application
• We have two main files using we configure asp
application

1. Machine.config
2. Web.config

You might also like