Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 159997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:57:25+00:00 2026-05-11T10:57:25+00:00

I personally like option one below for maintainability but I could see option two

  • 0

I personally like option one below for maintainability but I could see option two getting me better performance. Option three is probably complete garbage.

1. ViewState['Calendar1.SelectionMode'] = Calendar1.SelectionMode; 2. ViewState['CSM'] = Calendar1.SelectionMode; 3. ViewState['Calendar1_SelectionMode'] = Calendar1.SelectionMode; 

Am I applying old school habits of thinking about the maintenance? Does it matter only when the number of objects is large? I cannot see the internals using anything but a very efficient hash. I have read up on methods to speed up the page loading but nothing directly advising as this being even a slight factor. All the literature talks about is prefering the viewstate over database access reads, using compact types, populating only those values that take on non default values.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:57:26+00:00Added an answer on May 11, 2026 at 10:57 am

    Option two will probably give you better performance, but the difference is extremely small. If you’re experiencing performance problems this would be one of the very last places I would look for bottlenecks. Have you run any kind of profiling on your page? That’s where I would start looking.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Personally I like this one: P.S. Do not hotlink the cartoon without the site's
I personally like the option to configure StructureMap from C# code. From what I
I personally like the exclusive or , ^ , operator when it makes sense
I'd like to self-host an SVN repository for a personal project (web game), but
Where I work, I often see code like that : public void Test(Models.User.UserInfo userInfo,
Simple. I use Vault to manage my personal source files. But I don't like
For the last two to three months iv'e been dipping and diving in and
I'd like to know if there is any personal source controller, I'd like to
I have several sources of tables with personal data, like this: SOURCE 1 ID,
I've got mssql 2005 running on my personal computer with a database I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.