08.01.2015 Views

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

32<br />

CHAPTER 2 ■ BASICS OF WEB DEVELOPMENT WITH <strong>ASP</strong>.<strong>NET</strong><br />

Architecture of <strong>ASP</strong>.<strong>NET</strong><br />

The simplicity of developing the stock quote application proves the power that <strong>ASP</strong>.<strong>NET</strong><br />

affords you as a web developer. Some fairly complex stuff was going on behind the<br />

scenes, enabling you to focus on the business logic for your application, instead of all the<br />

underlying plumbing necessary to get it to work.<br />

Figure 2-22 shows how the underlying <strong>ASP</strong>.<strong>NET</strong> components all work together in an<br />

<strong>ASP</strong>.<strong>NET</strong> application. At the bottom of the figure, you see the host operating system on<br />

which the web server runs. The web server for <strong>ASP</strong>.<strong>NET</strong> can be Cassini or IIS. The web<br />

server receives the incoming request from the browser <strong>and</strong> passes it to the <strong>ASP</strong>.<strong>NET</strong> runtime,<br />

which sits on top of the operating system.<br />

This runtime can use a global application file, called Global.asax, to manage functions<br />

that are central to your web site. A number of modules are available to the runtime<br />

for h<strong>and</strong>ling sessions, authentication, <strong>and</strong> caching.<br />

Finally, your application or web service sits on top of these modules <strong>and</strong> executes.<br />

Upon executing, it generates HTML markup that gets passed back to the process that<br />

initiated the request through the web server.<br />

Figure 2-22. <strong>ASP</strong>.<strong>NET</strong> architecture

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!