INTRODUCTION TO .NET FRAMEWORK COMPILATION IN .NET ASP.NET FEATURE OF ASP.NET C# LANGUAGE WORKING WITH DATA LIFE CYCLE OF ASP.NET WEBSITE SECURITYCONTENTS
What is .NET FRAMEWORK? A programming infrastructure created by Microsoftfor building, deploying, and running applications andservices that use .NET technologies, such asdesktop applications and Web services. The .NET Framework contains three major parts:1) Common Language Runtime2) Framework Class Library3) ASP.NET
Common Language Runtime(CLR) CLR works like a virtual machine in executing alllanguages. Central part of framework- Executes programs Compilation process-Two compilations take place Programs compiled to Microsoft Intermediate Language(MSIL) Defines instructions for CLR MSIL code translated into machine code
CLR Why two compilations? Platform independence .NET Framework can be installed ondifferent platforms Execute .NET programs without anymodifications to code .NET compliant program translatedinto platform independent MSIL Language independence MSIL form of .NET programs not tiedto particular language Programs may consist of several.NET-compliant languages Old and new components can beintegrated MSIL translated into platform-specificcode
Introduction to ASP.NET ASP.NET,the platform services that allow toprogram Web Applications and Web Services inany .NET language ASP.NET is built on the Common LanguageRuntime(CLR), allowing programmers to writeASP.NET code using any supported .NETlanguage You can develop your ASP.NET Web-basedapplications in any .NET complaint languages suchas Microsoft Visual Basic, Visual C#, andJScript.NET.
What is ASP.NET ASP.NET is a server side scripting technology thatenables scripts (embedded in web pages) to beexecuted by an Internet server ASP stands for Active Server Pages ASP.NET file runs inside IIS IIS (Internet Information Server) is MicrosoftsInternet server
Features of ASP.NETCompiled CodePower and FlexibilitySimplicityScalability Security
MASTER PAGES Master pages allow us to create a consistent lookand behavior for all the pages (or group of pages) inour web application Create Master page by creating a file with the“.master ” extension The content which would be changed in Contentpages should be placed in “ContentPlaceHolder”control For ex: standard header and footer , menu ,etc.
MASTER PAGES Advantage of master pageswebsites easier toMaintainExtendModify A master page provides a template for otherpages, with shared layout and functionality
C# Language Object oriented Language interoperability Can interact with software components written in different languages orwith old packaged software written in C/C++ Here is a partial list of core C# features that arefound in all versions of the language: No pointers required. Automatic memory management through garbagecollection. Using the partial keyword.
C#FlexiblePowerfulEasier to use Visually oriented Internet friendly Secure
Database Connectivity ADO.NET is the technology that ASP.NETapplication use to communicate with a database ADO.NET is a technology designed for ASP.NETprograms to access data ADO.NET , Microsoft ‘s latest data access model
Database Connectivity ADO CLASSIC Provide connectivity in only connected modeUse record set object ADO.NET Provide connectivity in both mode1. Connection modeUse data reader object2. Disconnected modeUse dataset object
Lifecycle of ASP page InitLoadRenderUnload