The .NET Framework
 AGENDABrief History of Internet
Server Side programming
Client Side programming
Server vs. Client side applications
What is ASP.NET
How ASP.NET works
Introduction to .NET Framework
Web Platform Installer
Introduction to Visual Studio IDE
Creating ASP.NET projects          History of InternetTo create a truly resilient information network—one that could withstand the loss of several computers without preventing the others from communicating.
It flourished as a tool for academic collaboration, allowing researchers across the globe to share
The first generation of websites often looked more like brochures, consisting mostly of fixed HTML pages.
HTML 2.0 introduced the first seed of web programming with a technology called HTML forms.Server-Side ProgrammingTechnology in which a user's request is verified by running a script directly on the web server to generate dynamic web pagesServer-side scripts are never visible to the browser as these scripts are executed on the server and emit HTML corresponding to user's input to the page.It is usually used to provide interactive web sites that interface to databases or other data stores.
Server-Side ProgrammingIn the earlier days of the web, server-side scripting was almost exclusively performed by using a combination of C programs, Perl scripts and shell scripts using the Common Gateway Interface (CGI).These and other on-line scripting languages such as ASP and PHP can often be executed directly by the web server
Examples of Server-side scriptsASP
ColdFusionMarkup Language (*.cfm)
Java via JavaServer Pages (*.jsp)
JavaScript using Server-side JavaScript (*.ssjs, *.js)
Perl CGI (*.cgi, *.ipl, *.pl)
PHP (*.php)
Python (programming_language) via Django(Web_framework) (*.py)
Ruby, e.g. Ruby on Rails (open source)Client-Side ProgrammingRefers to the class of computer programs on the web that are executed client-side, by the user's web browser, instead of server-side (on the web server)Client-side scripts are often embedded within an HTML or XHTML document (hence known as an "embedded script"), but they may also be contained in a separate file, which is referenced by the document (or documents) that use it (hence known as an "external script").
Examples of Client-Side ScriptsJavaScript

Chapter 1

  • 1.
    The .NETFramework
  • 2.
  • 3.
  • 4.
  • 5.
    Server vs. Clientside applications
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
    Creating ASP.NET projects History of InternetTo create a truly resilient information network—one that could withstand the loss of several computers without preventing the others from communicating.
  • 12.
    It flourished asa tool for academic collaboration, allowing researchers across the globe to share
  • 13.
    The first generationof websites often looked more like brochures, consisting mostly of fixed HTML pages.
  • 14.
    HTML 2.0 introducedthe first seed of web programming with a technology called HTML forms.Server-Side ProgrammingTechnology in which a user's request is verified by running a script directly on the web server to generate dynamic web pagesServer-side scripts are never visible to the browser as these scripts are executed on the server and emit HTML corresponding to user's input to the page.It is usually used to provide interactive web sites that interface to databases or other data stores.
  • 15.
    Server-Side ProgrammingIn theearlier days of the web, server-side scripting was almost exclusively performed by using a combination of C programs, Perl scripts and shell scripts using the Common Gateway Interface (CGI).These and other on-line scripting languages such as ASP and PHP can often be executed directly by the web server
  • 16.
  • 17.
  • 18.
    Java via JavaServerPages (*.jsp)
  • 19.
    JavaScript using Server-sideJavaScript (*.ssjs, *.js)
  • 20.
    Perl CGI (*.cgi,*.ipl, *.pl)
  • 21.
  • 22.
    Python (programming_language) viaDjango(Web_framework) (*.py)
  • 23.
    Ruby, e.g. Rubyon Rails (open source)Client-Side ProgrammingRefers to the class of computer programs on the web that are executed client-side, by the user's web browser, instead of server-side (on the web server)Client-side scripts are often embedded within an HTML or XHTML document (hence known as an "embedded script"), but they may also be contained in a separate file, which is referenced by the document (or documents) that use it (hence known as an "external script").
  • 24.
    Examples of Client-SideScriptsJavaScript
  • 25.
  • 26.
  • 27.
  • 28.
    Plug-ins Shockwave, Flash,Real Audio etc.Sever vs. Client web applications
  • 29.
    ASP vs. ASP.NETMicrosoft'sprevious server side scripting technology ASP (Active Server Pages)ASP.NET is the next generation ASP, but it's not an upgraded version of ASP. ASP.NET is an entirely new technology for server-side scripting. It was written from the ground up and is not backward compatible with classic ASP.
  • 30.
    What is ASP.NETASP.NETis an engine or a program (aspnet_isapi.dll) embedded in IIS Server and is an integral part of .NET framework. It allows to combine the best of client-side and server-side programming.The best ASP.NET controls can intelligently detect the features of the client browser.You can super-charge ordinary ASP.NET pages with Ajax features, which use even more client-side JavaScript.
  • 31.
    How does ASP.NETwork?When a browser requests an HTML file, the server returns the file
  • 32.
    When a browserrequests an ASP.NET file, IIS passes the request to the ASP.NET engine on the server
  • 33.
    The ASP.NET enginereads the file, line by line, and executes the scripts in the file
  • 34.
    Finally, the ASP.NETfile is returned to the browser as plain HTML The .NET Framework A high level development platform developed by Microsoft which allows developers to program dynamic web pages without worrying about the low-level implementation details.It provides high level features such as ability to authenticate users, store personalized information, display records from database.The applications running on .NET framework are robust, well managed, scalable, and can keep up with the demand of too many simultaneous users without slowing down or crashing
  • 35.
    Introduction to the .NET Framework The .NET framework is a software platform that provides:A managed computing platformA secured runtime/execution environmentLanguage ChoiceAn Object-Oriented Programming environmentA collection of built-in class library and functions Integrated Development Environment Visual Studio
  • 36.
    .NET Framework consistsof:The .NET languages:The Common Language Runtime (CLR):The .NET Framework class library:ASP.NET EngineVisual Studio:
  • 37.
  • 38.
  • 39.
  • 40.
    JscriptIntermediate Language (IL)Allthe .NET languages are compiled into a lower-level language called the Common Intermediate Language (CIL, or just IL). Because all .NET languages are designed based on IL, they all have profound similarities. In fact, the languages are so compatible that a web page written with C# can use a VB component in the same way it uses a C# component, and vice versa.
  • 41.
    The .NET Frameworkformalizes this compatibility with something called the Common Language Specification (CLS).Essentially, the CLS is a contract that, if respected, guarantees that a component written in one .NET language can be used in all the others. One part of the CLS is the Common Type System (CTS), which defines the rules for data types such as strings, numbers, and arrays that are shared in all .NET languages. The CLS also defines object-oriented ingredients such as classes, methods, events, and quite a bit more. For the most part, .NET developers don’t need to think about how the CLS works, even though they rely on it every day.
  • 42.
    .Common Language RuntimeTheCommon Language Runtime (CLR) is the run time environment that provides the underlying infrastructure for the .NET Framework. It is where the source code of an application is compiled into an intermediate language.CLR translates the IL into the native code of the operating system using a just-in-time (JIT) compiler.Not only does the CLR execute code, but it also provides a whole set of related services such as code verification,optimization, and object management.
  • 44.
    .NET Class LibraryThe.NET class library is a giant repository of classes that provide prefabricated functionality for everything from reading an XML file to sending an e-mail message.
  • 45.
    Any .NET languagecan use the .NET class library’s features by interacting with the right objects.
  • 46.
    Provides the tediousinfrastructure so that application developers need only to write business specific code. For example, the .NET Framework deals with thorny issues such as database transactions and concurrency, making sure that hundreds or thousands of simultaneous users can request the same web page at once. ASP.NET EngineIt hosts the web applications that you create with .NET and supports almost any feature from the .NET framework class library.It also includes a set of web specific services such as secure authentication and data storage.
  • 47.
    Visual StudioProvides arich environment where you can rapidly create advanced applications. Although in theory you could create an ASP.NET application without Visual Studio (for example, by writing all the source code in a text editor and compiling it with .NET’s command-line compilers), this task would be tedious, painful, and prone to error.Some of the features of Visual Studio include the following:Page design
  • 48.
  • 49.
  • 50.
  • 51.
    SummaryThis chapter presenteda high-level overview that gave you your first taste of ASP.NET and the .NET Framework. You also looked at how web development has evolved, from the basic HTML forms standard to the modern ASP.NET platform.In the next chapter, you’ll get a comprehensive overview of the C# language.