Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
ASP.NET Presentation
1.
2. ASP.NET mean is Active Server Pages . It is a server-side Web
application framework designed for Web development to produce
dynamic Web pages .It was developed by Microsoft to allow
programmers to build ,
• Dynamic web sites,
• Web applications
• Web services
3. • The latest version of ASP is known as ASP.NET
• Visual Studio .NET is a developer application used to
create ASP.NET Web applications
• There are two main types of Web resources created
with ASP.NET applications
– Web Forms are ASP.NET pages within an ASP.NET
application
– Web Services are ASP.NET Web pages that contain
publicly exposed code so that other applications can
interact with them
– Web Services are identified with the file extension .asmx
4. ASP.NET 1.0 was released on January 5, 2002 as part of version
1.0 of the .NET Framework.
Scott Guthrie became the product unit manager for ASP.NET, and
development continued apace, with version 1.1 being released on
April 24, 2003 as a part of Windows Server 2003. This release
focused on improving ASP.NET's support for mobile devices.
5. • Improved Performance and Scalability.
Compiled Execution, Rich Output Caching, Web Farm Session State.
• Enhanced Reliability.
Memory Leak, Dead Lock, and Crash Protection
• Easy Deployment.
No Touch" Application Deployment, Dynamic Update of Running
Application, Easy Migration Path
• New Application Models.
XML Web Services
• Developer Productivity.
Easy Programming Model, Flexible Language Options, Rich Class Framework.
6. • Code-behind model
It is recommended by Microsoft for dealing with dynamic program code
to use the
code-behind model, which places this code in a separate file or in a specially designated
script tag
• User controls
ASP.NET supports creating reusable components through the creation of User Controls
• Rendering technique
ASP.NET uses a visited composites rendering technique. During compilation, the
template (.aspx) file is compiled into initialization code which builds a control tree (the
composite) representing the original template
7. • Compiled code
Code written in ASP.NET is compile and not interpreted.
• Enriched tool support
ASP.NET applications using visual studio
• Power and flexibility
ASP.NET applications are based on the CLR
• Simplicity
ASP.NET enables you to build user interfaces that separate application logic from
presentation content
• Manageability
ASP.NET provides a number of options in providing the above facilities
8. • Server control
Respond to users events by running event procedures on the
server.
• HTML control
Represent the standard visual elements provided in HTML
• Data control
Provide a way to connect to perform commands on and
retrieve data from SQL , OL ,databases and XML data files
• System components
Provide access to various system level events that occur on the
server
9.
10. Step 1
–
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
–
–
–
–
–
–
Create Local Folders for Your Web
Project
Create a Blank Solution
Add a Web Site to Your Solution
Add a Class Library (Optional)
Check Your Solution Structure
Check Your Local Folder Structure
Add Your Solution to Source Control
11. Date
Version
Remarks
January 16, 2002
1.0
First version, released together with Visual Studio .NET
April 24, 2003
1.1
released together , Windows Server 2003 and Visual
Studio .NET 2003
November 7, 2005
2.0
released together with Visual Studio 2005 , Visual Web
Developer Express
and SQL Server 2005
November 21, 2006
3.0
November 19, 2007
3.5
Released with Visual Studio 2008 and Windows Server
2008
April 12, 2010
4.0
Parallel extensions and other .NET Framework
4 features
August 15, 2012
4.5
Released with Visual Studio 2012 and Windows Server
2012 for Windows 8
12. Web Server
Web Browser
1. Client Initiates
2. Communications
With page request
Get default.aspx
Display page
Server response with
pages
1. Process request
2. Execute server slide
code
3. Store session data
4. Send result response
13.
14.
15.
16.
17.
18. • This section provides an overview of the ASP.NET
security infrastructure. The following illustration
shows the relationships among the security systems in
ASP.NET.
19. •
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat ="server">
protected void PageLoad (object sender, EventArgs e )
{
Label1.Text = DateTime.Now.ToLongDateString();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Sample page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
The current time is: <asp:Label runat="server" id="Label1" />
</div>
</form>
</body>
</html>