Caching asp.net pages

  • Thread starter Bruno Alexandre
  • Start date
B

Bruno Alexandre

Hi guys,

I built a online Portal that shows results, stock managment, etc...
but same pages take long time to display because they are getting the
results from the Database.

to make it faster I add this line:

<%@ OutputCache Duration="5000" VaryByParam="none" %>

but I got a problem,

on that page I show the User Name, like Bruno Alexandre (from a session
object)
if I use the cache the name does not change! even if I logout and enter with
an entirely different user

I wanted to cache the hole page, but be able to have that dynamic label
correct

How can I cache parts of the page?

Without remove that label, what can I do to perform this Cache method?


Thank you
Bruno Alexandre

"a Portuguese in København, Danmark"
 
Y

Yuriy Galanter

Use substitution control. It allows for a dynamic content on a cached page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top