.NET

Tips and Tricks on Microsoft Application Virtualization 4.6

by | January 2011 | .NET Microsoft Web Development

This article, in the tips and tricks format, takes a good look at the components in an App-V infrastructure and the role each of them plays and how the interconnection existing in those components builds the existing models available to deploy App-V in our organization.

The reader will benefit from the previous article on FAQ on Virtualization and Microsoft App-V.

Read Tips and Tricks on Microsoft Application Virtualization 4.6 in full

ASP.NET MVC 2: Validating MVC

by Andrew Siemer Richard Kimber | January 2011 | .NET Cookbooks Microsoft

Validation is the key to any application that accepts input of any kind, but where should it be implemented—on the client where it is most responsive, in the business logic where it is most central, or in the data layer where it is most secure? ASP.NET MVC provides a simple yet powerful framework for defining validation from a central location that is decoupled from the data layer; validation that makes use of client scripting without being dependent on it; and with all this, keeping the validation DRY.

In this article by Andrew Siemer and Richard Kimber, authors of ASP.NET MVC 2 Cookbook, we will cover:

  • Basic input validation
  • Data annotations
  • Client-side validation with jQuery
  • Custom validators
  • Remote validation with jQuery
Read ASP.NET MVC 2: Validating MVC in full

Working with Master Pages in ASP.NET MVC 2

by Andrew Siemer Richard Kimber | January 2011 | .NET Cookbooks Web Development

Master pages are a very important part of any large-scale site. They allow you to easily manage the boilerplate code that every page in your site uses. This might encompass features such as navigational items, header and footer layout, basic layout, and so on. In this article by Andrew Siemer and Richard Kimber, authors of ASP.NET MVC 2 Cookbook, we will discuss how to create and use master pages to control application-wide formatting. We will also take a look at how to employ a base page, to control which master page is used. Then we will see how to pass data from the view to the master page. Specifically we will cover:

  • How to create a master page
  • Determining the master page in the ActionResult
  • Controlling which master page is used with a view base class
  • Setting the master page from a controller base class
  • Passing data to the master page
Read Working with Master Pages in ASP.NET MVC 2 in full

Tips and Tricks for Effectively Using ASP.NET

by Matt Perdeck | December 2010 | .NET Web Development

A slow website with angry managers looking over your shoulder and raging calls from advertisers and clients is every web developer's nightmare.

The following article will take a look at some tips and tricks to improve the performance of your ASP.NET-based website, such as:

  • Caching is one of the methods used to improve website performance
  • Hotlinking should be avoided
  • Reducing space taken by ASP.NET Ids
Read Tips and Tricks for Effectively Using ASP.NET in full

ASP.Net Site Performance: Reducing Page Load Time

by Matt Perdeck | October 2010 | .NET Web Development

In the previous article, ASP.Net Site Performance: Improving JavaScript Loading, we saw how JavaScript files can block rendering of the page while they are being loaded and executed, and how to load JavaScript in parallel with other resources.

In this article by Matt Perdeck, author of ASP.NET Site Performance Secret, we will see how to load JavaScript code on demand, and techniques to load JavaScript without blocking page rendering.

Read ASP.Net Site Performance: Reducing Page Load Time in full

ASP.Net Site Performance: Improving JavaScript Loading

by Matt Perdeck | October 2010 | .NET Web Development

One approach to improving page performance is to shift functionality from the server to the browser. Instead of calculating a result or validating a form in C# on the server, you use JavaScript code on the browser. A drawback of this approach is that it involves physically moving code from the server to the browser. Because JavaScript is not compiled, it can be quite bulky. This can affect page load times, especially if you use large JavaScript libraries. You're effectively trading off increased page load times against faster response times after the page has loaded.

In this article by Matt Perdeck, author of ASP.NET Site Performance Secret, you'll see how to reduce the impact on page load times by the need to load JavaScript files. It shows:

  • How JavaScript files can block rendering of the page while they are being loaded and executed
  • How to load JavaScript in parallel with other resources
  • How to load JavaScript more quickly
Read ASP.Net Site Performance: Improving JavaScript Loading in full

NHibernate 3.0: Using LINQ Specifications in the data access layer

by Jason Dentler | October 2010 | .NET Cookbooks Open Source Web Development

With the completion of LINQ to NHibernate for NHibernate 3.0, we can easily implement the specification pattern. In this article by Jason Dentler, author of NHibernate 3.0 Cookbook, we will see how to set up and use the specification pattern with the NHibernate repository.

Read NHibernate 3.0: Using LINQ Specifications in the data access layer in full

NHibernate 3.0: Using ICriteria and Paged Queries in the Data Access Layer

by Jason Dentler | October 2010 | .NET Cookbooks Open Source Web Development

For queries where the criteria are not known in advance, such as a website's advanced product search, ICriteria queries are more appropriate than named HQL queries. This article by Jason Dentler, author of NHibernate 3.0 Cookbook, shows how to use the same DAL infrastructure with ICriteria and QueryOver queries.

In an effort to avoid overwhelming the user, and increase application responsiveness, large result sets are commonly broken into smaller pages of results. This article also shows how we can easily add paging to a QueryOver query object in our DAL.

Read NHibernate 3.0: Using ICriteria and Paged Queries in the Data Access Layer in full

Fixing Bottlenecks for Better Database Access in ASP.Net

by Matt Perdeck | October 2010 | .NET Web Development

This article shows how to actually fix each of the bottlenecks you prioritized in the previous article, .

In this article by Matt Perdeck, author of ASP.NET Site Performance Secret, we will cover the following:

  • Missing indexes
    • Clustered index
    • Non-clustered index
    • Included columns
    • Selecting columns to give an index
    • Maintaining indexes
  • Expensive queries
Read Fixing Bottlenecks for Better Database Access in ASP.Net in full

Pinpointing Bottlenecks for Better Database Access in ASP.Net

by Matt Perdeck | October 2010 | .NET Web Development

In many websites, database access is the most expensive part of producing a web page. This article by Matt Perdeck, author of ASP.NET Site Performance Secret, shows how to identify the most common sources of delays and how to resolve them.

This article shows how to pinpoint and prioritize a number of common bottlenecks, so that you can spend your time where it counts the most. These bottlenecks include:

  • Missing indexes
  • Expensive queries
  • Locking
  • Execution plan reuse
  • Fragmentation
  • Memory
  • Disk
  • CPU

 

Read Pinpointing Bottlenecks for Better Database Access in ASP.Net in full
Syndicate content
Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software