[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

Selective Caching/Selective Auto Refresh on Page

Hi,
I have an aspx page where there are lot of contents and heavy images.
A part of my page contains some data (6 to 7 Integer Values) which are dynamically captured from Electronic Meters and machines. These data needs to be refreshed on the page every Minute.

What I have done is, I am using Auto-Refresh so that the page automatically refreshes every One minute. The values are picked up from the database and displayed.

My problem is all the content gets refreshed and the Images and all take quite some time to re-load. Can I have something like selective Caching so that the Images/Text etc. gets Cached but not the Dynamic values???

There's another approach where I can put the Dynamic Values on a separate Frame and Auto refresh the Frame content, But Frames look Ugly. Can this method be used say with a Layer ????
0
arif_eqbal
Asked:
arif_eqbal
  • 3
  • 2
1 Solution
 
mmarinovCommented:
Hi arif_eqbal,
yes, you can do that
check Caching Portions of an ASP.NET Page : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcachingportionsofaspnetpage.asp

Regards!
B..M
mmarinov
0
 
arif_eqbalAuthor Commented:
Hi, mmarinov
Thanks for your response

I have gone through the MSDN documentation on Caching But they talk of Caching based on components. If I have a class which i make a component and add on my page I can specify a different caching instruction for it. That sounds a bit complex.

I have a simple Table on my form wherin I have some data from the database
i want everything cached except this table content.

If I don't get any solution I'll go ahead and make a component of the table.

0
 
mmarinovCommented:
the other option it so chace your objects programatically - also have you disabled the expiration of the content in the IIS - this cause the IIS to cache every static objects - like images without developer to write any line of code and load every time the other objects
to check this -> righ click on your web site/virtual directory-> go to HTTP Headers tab-> uncheck (if it check) the checkbox Enable content expiration

B..M
mmarinov
0
 
arif_eqbalAuthor Commented:
Hi, mmarinov

You sounded like what I wanted, It would actually help me if IIS somehow caches all static content like images. Because that's what I want, To cache the static content and not the dynamic one.

Now I am not very adept at Web programming and have little idea of IIS, can you just explain how and what it does.

Also this will be cached on the server right, The images will still have to be transferred to the client on each refresh. Isn't there anything which will cache static contents like images on the client....

0
 
mmarinovCommented:
yes, the cashe will be on the server - but it is much faster than if you call every time to be reneder from the 0
for caching on client you have to use manual caching or the portion caching

B..M
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now