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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Caching based on e.CommandName

Caching based on e.CommandName

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • D Offline
    D Offline
    DISP Jol
    wrote on last edited by
    #1

    Hi Folks,, I have a web page with multiple buttons on it...Each button is responsible for retriving and presenting information on this web page... I want to implement caching on this web page where I can vary the page depending upon which button caused the postback... Can anyone suggest how can I achieve this... Joel

    JO

    E 1 Reply Last reply
    0
    • D DISP Jol

      Hi Folks,, I have a web page with multiple buttons on it...Each button is responsible for retriving and presenting information on this web page... I want to implement caching on this web page where I can vary the page depending upon which button caused the postback... Can anyone suggest how can I achieve this... Joel

      JO

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      Hi there: I'm not sure what you need about caching based on e.CommandName...:confused::confused: For caching...just simply load data and put it into cache... << >>

      D 1 Reply Last reply
      0
      • E enjoycrack

        Hi there: I'm not sure what you need about caching based on e.CommandName...:confused::confused: For caching...just simply load data and put it into cache... << >>

        D Offline
        D Offline
        DISP Jol
        wrote on last edited by
        #3

        I dont wanna cache the entire data set...I just wanna vary the cache based on the commandName property of all my button controls.. Thanks joel

        JO

        E 1 Reply Last reply
        0
        • D DISP Jol

          I dont wanna cache the entire data set...I just wanna vary the cache based on the commandName property of all my button controls.. Thanks joel

          JO

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          So what is your problem when do caching based on that commandName...?I think, when a button is cliecked...you just check if the data is already cached or not...if not, load from DB and cache it...if already, just read from cache...is that ok? << >>

          D 1 Reply Last reply
          0
          • E enjoycrack

            So what is your problem when do caching based on that commandName...?I think, when a button is cliecked...you just check if the data is already cached or not...if not, load from DB and cache it...if already, just read from cache...is that ok? << >>

            D Offline
            D Offline
            DISP Jol
            wrote on last edited by
            #5

            Actually I am using Output caching ..not data caching.. <%@ OutputCache Duration="120" VaryByParam= I wanna cache different versions of the page depending on the commandname argument...

            JO

            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