asp.net presentation

22

Upload: dimuthu22

Post on 07-May-2015

1.457 views

Category:

Technology


2 download

DESCRIPTION

C# ASP.NET Department of Information technology [email protected]

TRANSCRIPT

Page 1: ASP.NET Presentation
Page 2: ASP.NET Presentation

INTRODUCTION

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

Page 3: ASP.NET Presentation

ASP.NET

• 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

Page 4: ASP.NET Presentation

HISTORYASP.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.

Page 5: ASP.NET Presentation

WHY USE ASP.NET• 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.

Page 6: ASP.NET Presentation

CHARACTERISTICS• 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

Page 7: ASP.NET Presentation

CHARACTERISTICS• 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

Page 8: ASP.NET Presentation

COMPONENTS• Server control

Respond to users events by running event procedures on the server.

• HTML controlRepresent the standard visual elements provided in HTML

• Data controlProvide a way to connect to perform commands on and retrieve data from SQL , OL ,databases and XML data files

• System componentsProvide access to various system level events that occur on

the server

Page 9: ASP.NET Presentation

SOME ASP.NET NAMESPACES

Page 10: ASP.NET Presentation

STEPS FOR DEVELOPING A WEB BASED APPLICATION

Step 1 – Create Local Folders for Your Web Project

Step 2 – Create a Blank Solution

Step 3 – Add a Web Site to Your Solution

Step 4 – Add a Class Library (Optional)

Step 5 – Check Your Solution Structure

Step 6 – Check Your Local Folder Structure

Step 7 – Add Your Solution to Source Control

Page 11: ASP.NET Presentation

ASP.NET VERSIONSDate 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 Expressand 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

Page 12: ASP.NET Presentation

REQUEST AND RESPONSE

Web Server

Server response with pages

1. Client Initiates2. Communications With page request

1. Process request2. Execute server slide

code3. Store session data4. Send result response

Web Browser

Display page

Get default.aspx

Page 13: ASP.NET Presentation
Page 14: ASP.NET Presentation

PROCESS OF WEB BROWSER

Page 15: ASP.NET Presentation
Page 16: ASP.NET Presentation

PROCESS OF WEB SERVER

Page 17: ASP.NET Presentation
Page 18: ASP.NET Presentation

ASP.NET SECURITY ARCHITECTURE

• This section provides an overview of the ASP.NET security infrastructure. The following illustration shows the relationships among the security systems in ASP.NET.

Page 19: ASP.NET Presentation

SAMPLE CODE

• <%@ 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>

Page 20: ASP.NET Presentation

CONCLUSION

Page 21: ASP.NET Presentation

REFERENCE• www.wikipedia.com• DTEC study text (Part ii)

Page 22: ASP.NET Presentation

THANK YOU