0% found this document useful (0 votes)
42 views

Muzaffar Iqbal Farooqi

&t_t_

Uploaded by

Huzaifa Mirza
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Muzaffar Iqbal Farooqi

&t_t_

Uploaded by

Huzaifa Mirza
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Muzaffar Iqbal Farooqi

Visual Programming 2
What is ASP.NET?
 ASP.Net is a web development platform provided by
Microsoft.
 It is used for creating web-based applications.
 ASP.Net was first released in the year 2002.
 ASP.Net applications can also be written in a variety of
.Net languages.
 These include C#, VB.Net, and J#.

Visual Programming 3
ASP.NET Architecture and its
Components
 ASP.Net is a framework which is used to develop a
Web-based application.
 The basic architecture of the ASP.Net framework is
as shown below.

Visual Programming 4
ASP.NET Architecture and its
Components...
 Language – A variety of languages exists for .net
framework. Usually VB.net and C#. These can be used to
develop web applications.
 Library - The .NET Framework includes a set of standard
class libraries. The most common library used for web
applications in .net is the Web library. The web library has
all the necessary components used to develop .Net web-
based applications.
 Common Language Runtime - It's essentially the
runtime environment that manages the execution of .NET
programs. It provides services required for program
execution.
Visual Programming 5
Characteristics of the ASP.Net
framework
 Below are some of the key characteristics of the ASP.Net
framework...
 Code Behind Mode
 State Management
 Caching

Visual Programming 6
Code Behind Mode
 This is the concept of separation of design and code.
 By making this separation, it becomes easier to
maintain the ASP.Net application.
 The general file type of an ASP.Net file is aspx.
 Assume we have a web page called MyPage.aspx.
 There will be another file called MyPage.aspx.cs which
would denote the code part of the page.
 So Visual Studio creates separate files for each web
page, one for the design part and the other for the
code.
Visual Programming 7
State Management
 ASP.Net has the facility to control state management.
 HTTP is known as a stateless protocol.
 Let's take an example of a shopping cart application. Now, when a user
decides what he wants to buy from the site, he will press the submit
button.
 There are several ways to manage state in ASP.NET…
 View State
 Session State
 Cache
 Cookies
 etc

Visual Programming 8
Caching
 ASP.Net can implement the concept of Caching.
 This improve's the performance of the application.
 By caching those pages which are often requested by
the user can be stored in a temporary location.
 These pages can be retrieved faster and better responses
can be sent to the user.
 So caching can significantly improve the performance
of an application.

Visual Programming 9
Server-Side Code
 What is server-side code?
 Software that runs on the
server, not the client
 Receives input from
 URL parameters
 HTML form data
 Can access server-side
databases, e-mail servers,
files, mainframes, etc.
 Dynamically builds a
custom HTML response
for a client Visual Programming 10
ASP.NET Overview and Features
 ASP.NET provides services to allow the creation,
deployment, and execution of
Web Applications and Web Services
 Web Applications are built using Web Forms
 Web Forms are designed to make building
web-based applications as easy as building Visual
Basic applications
 Built on .NET Framework: any .NET programming
language can be used (C#, Visual Basic)

Visual Programming 11
Web Forms
 ASP.NET web pages are called Web forms
 Uses a file name extension of .aspx
 Contains text, HTML tags, and HTML controls
 Also contains Web server controls such as text boxes, list
boxes, and buttons
 Web server controls are similar to C# controls
 Program logic for a Web form is stored in a related
code behind file with extension aspx.cs
Web Form Controls
 Toolbox contains controls for Web forms
 Many such as Label and TextBox are closely related to
Windows form controls used in C#
 Some like Hyperlink & login control are ASP only
 Can connect to data sources similar to C#
 Validation and navigation controls provided
 There are login controls to authenticate users
 Standard HTML controls are also available
 Buttons, checkboxes, radio buttons, text boxes
 But with few properties and no event handling

You might also like