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 579785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:24:10+00:00 2026-05-13T14:24:10+00:00

I have a list of objects in an asp.net page. Each object represents a

  • 0

I have a list of objects in an asp.net page. Each object represents a product of a shop, consisting of the name of the product, product id, price, available quantity etc. A customer can select a product from a drop down list, and the corresponding fields, such as price, quantity etc are automatically filled with the appropriate values. For performance reason, when the page loads I have fetched the whole list of products from the database and stored it inside the “Cache[‘Product’]” variable, so that when the value change event of the drop down occurs, I can get the corresponding values without any database queries.

This strategy works fine in my local development environment, but when the page is uploaded to the server, the corresponding fields are not getting appropriate values. Even when a product is selected from the drop down, the corresponding fields are not showing the appropriate price, quantity etc. Seems like my caching strategy is not working.

I don’t know what is wrong here. I have set the cache variable as follows :

if(Cache["ProductList"] == null)
            Cache.Insert("ProductList", Product, null, DateTime.Now.AddHours(1), Cache.NoSlidingExpiration);

When I need to retrieve the cache values, I have done it like below :

List<Product> CachedProduct = (List<Product> )Cache["ProductList"];

I have absolutely no idea what could be the problem here. I need some help 🙁

  • 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-05-13T14:24:11+00:00Added an answer on May 13, 2026 at 2:24 pm

    If you experience different behavior locally than on a server, this may have something to do with the configuration of the server. If you have access to that, check whether there are some differences. Otherwise you might want to post a more detailed sample of your code 😉

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

Sidebar

Related Questions

I have an asp.net page which is returning a list of object as a
I have a list of objects, each containing an Id, Code and Description. I
I have a list of bean objects passed into my JSP page, and one
In my ASP.NET MVC app, I have a fairly complex edit page which combines
I have a list of objects I wish to sort based on a field
I have IQueryable list of objects of type T which I want to transform
I have a list of objects (for the sake of example, let's say 5).
I have a list of objects and I want to reorder them randomly on
I have a list of objects and I would like to access the objects
I have a list of objects which need to be output 2 items per

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.