Keep Sites Running Smoothly By Avoiding These 10 Common ASP.NET Pitfalls

when  I am browsing through the net , I came across very good article.

  1. Does your app use LoadControl to load user controls dynamically? If so, make sure this is done in such a way that LoadControl will work both with and without output caching.
  2. Are you using kernel-mode output caching and session state in the same page? If so, remove the OutputCache directive to avoid caching that page or turn kernel-mode output caching off for the entire app.
  3. Are you calling FormsAuthentication.RedirectFromLoginPage in your ASP.NET 1.x-based app? If so, either change the second parameter to false or modify the Expires property of outgoing persistent forms authentication cookies to a more appropriate timeout.
  4. Do any of your pages generate inordinate amounts of view state? If so, turn off view state for individual controls or keep it on the server.
  5. Does your app use SQL Server session state? If so, make sure you disable sessions in pages that don’t use sessions.
  6. Does your app use the ASP.NET 2.0 role manager? If so, enable role caching to increase performance.
  7. Does your app use custom data types as profile properties? If so, you’ll avoid problems by creating custom data types that are compatible with XML serialization or by attributing the types as serializable and using the binary serializer to serialize and deserialize types.
  8. Does your app do database queries that take a long time to return? If so, consider whether the pages are candidates for becoming asynchronous.
  9. Does your ASP.NET app use client impersonation? If so, simple authentication in ASP.NET might enforce ACL-based permissions with less hassle.
  10. Have you profiled your app’s database activity? Examining communication between the app and database is a good first performance-tuning step.

Note: if you are interested in detail description on each topic then please visit following link.

http://msdn.microsoft.com/msdnmag/issues/06/07/Web…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: