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 ????
LVL 19
arif_eqbalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.