Chapter 1

1,903 views
1,843 views

Published on

The .NET FrameWork

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,903
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Chapter 1

  1. 1. The .NET Framework<br />
  2. 2. AGENDA<br /><ul><li>Brief History of Internet
  3. 3. Server Side programming
  4. 4. Client Side programming
  5. 5. Server vs. Client side applications
  6. 6. What is ASP.NET
  7. 7. How ASP.NET works
  8. 8. Introduction to .NET Framework
  9. 9. Web Platform Installer
  10. 10. Introduction to Visual Studio IDE
  11. 11. Creating ASP.NET projects</li></li></ul><li> History of Internet<br /><ul><li>To create a truly resilient information network—one that could withstand the loss of several computers without preventing the others from communicating.
  12. 12. It flourished as a tool for academic collaboration, allowing researchers across the globe to share
  13. 13. The first generation of websites often looked more like brochures, consisting mostly of fixed HTML pages.
  14. 14. HTML 2.0 introduced the first seed of web programming with a technology called HTML forms.</li></li></ul><li>Server-Side Programming<br />Technology in which a user's request is verified by running a script directly on the web server to generate dynamic web pages<br />Server-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.<br />It is usually used to provide interactive web sites that interface to databases or other data stores.<br />
  15. 15. Server-Side Programming<br />In 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).<br />These and other on-line scripting languages such as ASP and PHP can often be executed directly by the web server<br />
  16. 16. Examples of Server-side scripts<br /><ul><li>ASP
  17. 17. ColdFusionMarkup Language (*.cfm)
  18. 18. Java via JavaServer Pages (*.jsp)
  19. 19. JavaScript using Server-side JavaScript (*.ssjs, *.js)
  20. 20. Perl CGI (*.cgi, *.ipl, *.pl)
  21. 21. PHP (*.php)
  22. 22. Python (programming_language) via Django(Web_framework) (*.py)
  23. 23. Ruby, e.g. Ruby on Rails (open source)</li></li></ul><li>Client-Side Programming<br />Refers 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)<br />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").<br />
  24. 24. Examples of Client-Side Scripts<br /><ul><li>JavaScript
  25. 25. VBScript
  26. 26. Java applets
  27. 27. Active-X controls
  28. 28. Plug-ins Shockwave, Flash, Real Audio etc.</li></li></ul><li>Sever vs. Client web applications<br />
  29. 29. ASP vs. ASP.NET<br />Microsoft's previous server side scripting technology ASP (Active Server Pages)<br />ASP.NET is the next generation ASP, but it's not an upgraded version of ASP. <br />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.<br />
  30. 30. What is ASP.NET<br />ASP.NET is an engine or a program (aspnet_isapi.dll) embedded in IIS Server and is an integral part of .NET framework. <br />It allows to combine the best of client-side and server-side programming.<br />The best ASP.NET controls can intelligently detect the features of the client browser.<br />You can super-charge ordinary ASP.NET pages with Ajax features, which use even more client-side JavaScript.<br />
  31. 31. How does ASP.NET work?<br /><ul><li>When a browser requests an HTML file, the server returns the file
  32. 32. When a browser requests an ASP.NET file, IIS passes the request to the ASP.NET engine on the server
  33. 33. The ASP.NET engine reads the file, line by line, and executes the scripts in the file
  34. 34. Finally, the ASP.NET file is returned to the browser as plain HTML</li></li></ul><li> The .NET Framework <br />A high level development platform developed by Microsoft which allows developers to program dynamic web pages without worrying about the low-level implementation details.<br />It provides high level features such as ability to authenticate users, store personalized information, display records from database.<br />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<br />
  35. 35. Introduction to the .NET Framework <br />The .NET framework is a software platform that provides:<br />A managed computing platform<br />A secured runtime/execution environment<br />Language Choice<br />An Object-Oriented Programming environment<br />A collection of built-in class library and functions <br />Integrated Development Environment Visual Studio<br />
  36. 36. .NET Framework consists of:<br />The .NET languages:<br />The Common Language Runtime (CLR):<br />The .NET Framework class library:<br />ASP.NET Engine<br />Visual Studio:<br />
  37. 37. .NET Languages<br /><ul><li>Visual Basic
  38. 38. C# (Sharp)
  39. 39. Visual C++
  40. 40. Jscript</li></ul>Intermediate Language (IL)<br />All the .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.<br />
  41. 41. The .NET Framework formalizes this compatibility with something called the Common Language Specification (CLS).<br />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. <br />The CLS also defines object-oriented ingredients such as classes, methods, events, and quite a bit more. <br />For the most part, .NET developers don’t need to think about how the CLS works, even though they rely on it every day.<br />
  42. 42. .Common Language Runtime<br />The Common 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.<br />CLR translates the IL into the native code of the operating system using a just-in-time (JIT) compiler.<br />Not only does the CLR execute code, but it also provides a whole set of related services such as code verification,<br />optimization, and object management.<br />
  43. 43.
  44. 44. .NET Class Library<br /><ul><li>The .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. 45. Any .NET language can use the .NET class library’s features by interacting with the right objects.
  46. 46. Provides the tedious infrastructure 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. </li></li></ul><li>ASP.NET Engine<br />It hosts the web applications that you create with .NET and supports almost any feature from the .NET framework class library.<br />It also includes a set of web specific services such as secure authentication and data storage.<br />
  47. 47. Visual Studio<br />Provides a rich 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.<br />Some of the features of Visual Studio include the following:<br /><ul><li>Page design
  48. 48. Automatic error detection
  49. 49. Debugging tools
  50. 50. IntelliSense</li></li></ul><li>Web Platform Installer<br />
  51. 51. Summary<br />This chapter presented a high-level overview that gave you your first taste of ASP.NET and the .NET Framework. <br />You also looked at how web development has evolved, from the basic HTML forms standard to the modern ASP.NET platform.<br />In the next chapter, you’ll get a comprehensive overview of the C# language.<br />

×