Ultra-Fast ASP.NET 4.5 (2nd Edition)

Ultra-Fast ASP.NET 4.5 (2nd Edition)

Richard Kiessig

Language: English

Pages: 459

ISBN: B01359F6ZQ

Format: PDF / Kindle (mobi) / ePub


Ultra-Fast ASP.NET 4.5, 2nd edition, by Richard Kiessig
English | 2012 | ISBN-10: 1430243384 | Publisher: Apress | PDF | 460 pages | 5 MB

Ultra-Fast ASP.NET 4.5 presents a practical approach to building fast and scalable web sites using ASP.NET and SQL Server. In addition to a wealth of tips, tricks and secrets, you'll find advice and code examples for all tiers of your application, including the client, caching, IIS 7.5, ASP.NET 4.5, threads, session state, SQL Server 2012 (otherwise known as Denali), Analysis Services, infrastructure and operations. By applying author Rick Kiessig's ultra-fast approach to your projects, you’ll squeeze every last ounce of performance out of your code and infrastructure—giving your site unrivaled speed.

Building Hypermedia APIs with HTML5 and Node

Windows Server 2012 Hyper-V Cookbook

Pro Android Python with SL4A

The International Bank of Bob: Connecting Our Worlds One $25 Kiva Loan at a Time

Not for Profit: Why Democracy Needs the Humanities (New in Paper) (The Public Square)

Network Backup with Bacula How-To: Create an autonomous backup solution for your computer network using practical, hands-on recipes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

display by calling a WCF service once and storing the result in isolated storage so that it will be accessible from one page to the next. For a web storage approach, you could do something similar using Ajax. XAML Markup Start by adding a Silverlight application to your project. Right-click on your solution and select Add  New Project to open the Add New Project dialog box. Select Visual C# and Silverlight on the left and then Silverlight Application on the right. Call the project Welcome, and

private, a shared proxy must not cache the response. When set to public, a shared proxy can cache the response, although it’s not required to. The ASP.NET runtime marks all dynamic content with Cache-Control: private by default so that proxies won’t cache it. You should override that setting for dynamic content that is the same for all users by marking it with Cache-Control: public. The following example configures the Cache-Control header to tell both proxies and browsers that they can cache the

Figure 3-7 and 102 CHAPTER 3  CACHING selecting the User Mode Caching box. After that, click the Advanced button to bring up the dialog box in Figure 3-8. Figure 3-8. Advanced Output Cache Rule Settings dialog box for IIS 7 output caching From there you can set the query string variables or HTTP headers that IIS should use to vary the cache output. ASP.NET Output Caching ASP.NET has an output cache that is separate from the one in IIS; it’s implemented by a standard HttpModule called

the web server to issue that query (or a related one) to cause SQL Server to read the pages you will need into its memory. That way, when the user takes the action you anticipated, the data they require will already be in memory, and the query will complete more quickly. Even if the anticipated query is an UPDATE, INSERT, or DELETE, the query you use for precaching should always be a SELECT that references the same rows and indexes. The goal is not necessarily to perform the actual action, just

there are three equivalent URLs for default pages. In order to avoid “hidden” redirects like these, it’s important to use consistent URLs to reference default pages. The browser will also treat all three URLs as distinctly different, from a caching perspective. After experiencing a redirect on the first URL in the previous example, if a user later clicks a link that references the third version, they could end up with two copies of the page in their browser cache. Consistently using full,

Download sample

Download