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 !






State Management in ASP.NET


Posted Date: 12 Jun 2008    Resource Type: Tips    Category: Visual Studio

Posted By: Jolly Trivedi       Member Level: Silver
Rating:     Points: 3



These are some of the important tips for State Management in ASP.Net:
• Sensitive state that should not be viewed or modified by user should be stored on server.
• If this sensitive data is to be sent to client then it should be encrypted beforehand regardless of storage mechanism employed.
• If any data is passed in through Query string in URL then this data is visible to user, hence sensitive data that can be used to control the application should be encrypted when using this technique.
• Application object was an ideal choice if data that was to be stored did not vary at all for life of the application. But Application Objects are displayed in trace Output. Hence sensitive data cannot be stored in Application Object.
• When dealing with single ASP.Net Page, View state is better choice than Query string for managing state.
• For long term data storage, cookie, session or cache are more appropriate data containers.
• Session object is one of the less efficient ways of storing user data as it holds memory for some time even after user has stopped using application. This affects the scalability of a busy site.
• Cache Object is particularly suitable when you expect to return the same information in same format for many different requests. It is the technique to temporarily store page output or application data either on client or server which can be reused to satisfy subsequent requests avoiding overhead of recreating same information. Caching is an important technique for building high performance and scalable server applications.




Responses

Author: Jeff    13 Jun 2008Member Level: Gold   Points : 0
nice .....


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: Some Project related shortcuts
Previous Resource: Adding External Tools in Visual Studio
Return to Discussion Resource Index
Post New Resource
Category: Visual Studio


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

web conferencing

Contact Us    Privacy Policy    Terms Of Use