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

  • SEARCH
  • Home
  • 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 8101757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:03:53+00:00 2026-06-05T23:03:53+00:00

On a aspx page, I have to load a DropDown with some values coming

  • 0

On a aspx page, I have to load a DropDown with some values coming from the DB. What is most correct place to put the data to keep value during the page lifecycle?

Cahce Object?
Session?
ViewState?

More details:

  • This data are stored inside a DataTable
  • The rows can be also 200
  • The data are all string used to filted gridView items
  • 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. Editorial Team
    Editorial Team
    2026-06-05T23:03:54+00:00Added an answer on June 5, 2026 at 11:03 pm

    Cache if the data is expensive to obtain and is the same for all users.

    Session if the data is expensive to obtain and depends on the user

    Nothing if the data is cheap to obtain.

    ViewState if the data is in an admin page or somewhere where the traffic does not matter (internal website, rarely accessed page). 200 rows is probably a bit too much though.

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

Sidebar

Related Questions

I have a page http://www.mysite.com/image.aspx , that I want to load and display an
In my .aspx page which derives from a master page I have a contact
I have a page that uses jQuery to load an option dropdown on page
In my aspx page I have drop down list that initialy in page load
I have a dropdown list boxes in the page. When I Load the page.
I have a aspx page that have this piece of code to load a
i have some header tabs on a basic index.aspx page that uses a masterpage.
In my aspx page I have a tr which is set visible=false by default.
In my .aspx page I have; <%@ Page Language=VB AutoEventWireup=false CodeFile=Default.aspx.vb Inherits=_Default AspCompat=True %>
I am developing a aspx page. In the page I have three dropdownlists and

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.