ASP.net

Views:
 
Category: Education
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

ASP.NET : 

ASP.NET Made by Varsha Gupta 1

Index : 

Index Meaning Advantage Why asp.net? How does it work? How to install? Why migrate from asp to asp.net? Controls Preparing for asp.net. 2

ASP.NET : 

ASP.NET ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. You can develop your own ASP.NET Web based applications in any .NET complaint languages such as Microsoft Visual Basic, Visual C#, and Jscript.NET. 3

Advantages : 

Advantages ASP.NET is part of the .NET Framework. The .NET Framework comprises over 3,400 classes that we can employ in our ASP.NET applications. We can use the classes in the .NET Framework to develop any type of applications. ASP.NET Pages are compiled. When an ASP.NET page is first requested, it is compiled and cached on the server. This means that an ASP.NET page performs very rapidly all ASP.NET code is compiled rather than interpreted , which permits early binding, strong typing and just-in-time to native code. XML Based ASP.NET configuration settings are stored in XML-Based files, which are human readable and writable. Each one of our applications can have a different configuration schema according to our necessities. 4

Continued.. : 

Continued.. Code-Behind Logic The main problem with ASP pages is that an ASP page does not yield modularized code. Both Microsoft’s ASP.NET implementation contains a new-fangled method to break up business logic code from presentation code. Asp.net Pages are built with Server Controls. We can easily build complex web pages by bring together the pages out of ASP.NET server controls. For example-by adding validation control to a page. We can easily validate from data. 5

Why ASP.NET? : 

Why ASP.NET? Microsoft introduced ASP (Active Server Pages) in November 1996. Multi-language support- vb, c#,… Language enhancements-OOP,.. Benefits of the CLR. Benefits of the .NET Framework library. 6

How does it work? : 

How does it work? Fundamentally an ASP.NET page is just the same as an HTML page. An HTML page has the extension .htm. If a browser requests an HTML page from the server, the server sends the page to the browser without any modifications. An ASP.NET page has the extension .aspx. If a browser requests an ASP.NET page, the server processes any executable code in the page, before the result is sent back to the browser. The ASP.NET page above does not contain any executable code, so nothing is executed. 7

How to Install? : 

How to Install? Windows 2000 or XP Install Windows 2000 Professional or Windows XP Professional. In both cases, install the Internet Information Services (IIS) from the Add/Remove Windows components dialog. Service packs and updates Before ASP.NET can be installed on your computer, all relevant service packs and security updates must be installed. Install .NET After download, the .NET framework will install itself on your computer - there are no options to select for installation. The .NET Software Development Kit Connection Speed and Download Time. 8

Why migrate from ASP to ASP.NET : 

Why migrate from ASP to ASP.NET New page with VS.NET : Drag and Drop Data binding. ASP.NET enabling a web application. Full redesign of application. 9

Controls : 

Controls HTML controls. using runat=“ Server” Web controls. Datagrid, textbox, dropdown,.. Validation Control. 10

Preparing for ASP.NET : 

Preparing for ASP.NET Avoid declaring functions inside <% %> delimiters- use <script></script>. Avoid mixing languages in a single page. 11

ASP.NET-web pages : 

A simple ASP.NET page looks just like an ordinary HTML page. This code displays the example as an HTML page and save it as “firstpage.htm”. <html><body bgcolor=“yellow"><center><h2>Hello W3Schools!</h2></center></body></html> ASP.NET-web pages Hello W3School 12

Continued… : 

Continued… The simplest way to convert an HTML page into an ASP.NET page is to copy the HTML file to a new file with an .aspx extension. This code displays our example as an ASP.NET page and save it as “firstpage.aspx” <html><body bgcolor="yellow"><center><h2>Hello W3Schools!</h2></center></body></html> Hello W3School 13

ASP.NET Web Forms : 

ASP.NET Web Forms All server controls must appear within a <form> tag, and the <form> tag must contain the runat="server" attribute. The runat="server" attribute indicates that the form should be processed on the server. It also indicates that the enclosed controls can be accessed by server scripts: <form runat="server">...HTML + server controls</form> Note: An .aspx page can only contain ONE <form runat="server"> control! 14

End of the ASP.NET : 

End of the ASP.NET 15

authorStream Live Help