C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Performance tuning an asp.net page


Posted Date: 07 Jun 2008    Resource Type: Tips    Category: Web Development
Author: Kumar VeluMember Level: Diamond    
Rating: Points: 5



Hi friends,

I have included a simple tips below that helps to tune a performance in an asp.net page

-->Turn off Tracing unless until it is required:
Enabling tracing adds performance overhead and might expose private information, so it should be enabled only while an application is being actively analyzed. It should be turned off unless you require monitoring the trace logging.

-->Minimize the Use of Format ()
When you can, use toString () instead of format (). In most cases, it will provide you with the functionality you need, with much less overhead.

--> Design with ValueTypes
Use simple structs when you can, and when you don't do a lot of boxing
and unboxing.

-->Avoid using unmanaged code

--> Store your content by using caching:
ASP.NET allows you to cache entire pages, fragment of pages or controls. You can cache also variable data by specifying the parameters that the data depends. By using caching you help ASP.NET engine to return data for repeated request for the same page much faster.

--> Use Foreach loop instead of For loop for String Iteration

--> Disable View State of a Page if possible
View state is a fancy name for ASP.NET storing some state data in a hidden input field inside the generated page. When the page is posted back to the server, the server can parse, validate, and apply this view state data back to the page's tree of controls.




Responses

Author: madhavi    10 Jun 2008Member Level: Bronze   Points : 0
Hi,

good one...


Author: muthuvasagan    13 Jun 2008Member Level: Silver   Points : 0
HI this is 4 useful information.


Author: Jessie    16 Jun 2008Member Level: Gold   Points : 0

Avoid unnecessary white spaces in html.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Points to be looked into before starting to work with tables
Previous Resource: What the way to stop a long running thread
Return to Discussion Resource Index
Post New Resource
Category: Web Development


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use