Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to Cache whole page

how to Cache whole page

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kishorg1
    wrote on last edited by
    #1

    i have control which takes tto much time to load so i want to put tht page into cache. but accordint to different userid my first page is user login,after login user will get same page but diffent data . so i want to put tht page in to cache, how i will do tht?? put same page in cache but according to diiferent loginid

    N 1 Reply Last reply
    0
    • K kishorg1

      i have control which takes tto much time to load so i want to put tht page into cache. but accordint to different userid my first page is user login,after login user will get same page but diffent data . so i want to put tht page in to cache, how i will do tht?? put same page in cache but according to diiferent loginid

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Keep it in the Cache object with user id as key and reload from there for subsequent requests.

      Navaneeth How to use google | Ask smart questions

      K 1 Reply Last reply
      0
      • N N a v a n e e t h

        Keep it in the Cache object with user id as key and reload from there for subsequent requests.

        Navaneeth How to use google | Ask smart questions

        K Offline
        K Offline
        kishorg1
        wrote on last edited by
        #3

        can u plase give me the code....i didnt get u n where to write tht code??

        N 1 Reply Last reply
        0
        • K kishorg1

          can u plase give me the code....i didnt get u n where to write tht code??

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          You said you have a control which takes time to load. So put only the items required to fill that control in cache and not the whole page. Follow these steps 1 - Check cache has data 2 - If not, get the data from database (or somewhere), fill the cache and populate your control 2 - If cache has data, get the data from cache and populate control. Check this[^] article and read about Cache arbitrary objects in server memory If your data load is fast and your control is taking time to render the data, you can keep the rendered HTML of that control in cache and reuse it.

          Navaneeth How to use google | Ask smart questions

          K 1 Reply Last reply
          0
          • N N a v a n e e t h

            You said you have a control which takes time to load. So put only the items required to fill that control in cache and not the whole page. Follow these steps 1 - Check cache has data 2 - If not, get the data from database (or somewhere), fill the cache and populate your control 2 - If cache has data, get the data from cache and populate control. Check this[^] article and read about Cache arbitrary objects in server memory If your data load is fast and your control is taking time to render the data, you can keep the rendered HTML of that control in cache and reuse it.

            Navaneeth How to use google | Ask smart questions

            K Offline
            K Offline
            kishorg1
            wrote on last edited by
            #5

            my page has 3 diff controls....n i want to catch whole page

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups