How can I change the content in cache before I send it to client in ASP?

A

Aaron Bertrand [MVP]

Your question contradicts itself. There is nothing in the client cache
before you send the page to the client. And you can't modify what's in the
client's cache. If you think the server is caching a page result, see
http://www.aspfaq.com/2022
 
X

xingye

:(

When i use Response.Buffer=true, client cann't get the page until the last
command over or Response.Flush called. But, before the end of page or flush,
WHERE THE CONTENT CATCHED? CAN I CHANGE THE CONTENT?
 
E

Evertjan.

xingye wrote on 11 apr 2004 in microsoft.public.inetserver.asp.general:
When i use Response.Buffer=true, client cann't get the page until the
last command over or Response.Flush called. But, before the end of
page or flush, WHERE THE CONTENT CATCHED? CAN I CHANGE THE CONTENT?

response.clear

and start over again ...........
 
E

Evertjan.

Evertjan. wrote on 11 apr 2004 in
microsoft.public.inetserver.asp.general:
no
I want to CHANGE it NOT clear it....

Yo read only half my answer, Xingye.

Changing in this case is getting the original make the change and putting
it back

The original is known to you, since your code made the page, so remaking it
is not difficult.

The server buffer cannot be accessed by the asp page but can be manipulated
by emptying or rewriting.

Are you looking for the result or a impossible way to do this?
 
X

xingye

i want to translate the page from one language to the other.

so i think, change the buffer is the best way.

if asp cann't do it on server side, i fill very sorry:_(
 
E

Evertjan.

xingye wrote on 11 apr 2004 in microsoft.public.inetserver.asp.general:
i want to translate the page from one language to the other.

so i think, change the buffer is the best way.

if asp cann't do it on server side, i fill very sorry:_(

[This is not email, Xinggye, so please quote part of the text you are
answering on, so that others can follow your response.]

No, it is not the best way. Impossible ways are not that good.

I think I showed you a good way around your impossible request.

I am sorry you are sorry, it is not the way asp works.

=======================

Perhaps what you want is to serverside get the output of a page p1 to
manipulate in another page p2. That is something quite different.

Perhaps you could "get" your page p1 output locally and put the contents in
a string to manipulate by the asp code of page p2 ?
 
X

xingye

I made a page in one language then translate it to anther language by check
user's accepted language if necessary. I do not want to redirect user to
anther page.

Evertjan. said:
xingye wrote on 11 apr 2004 in microsoft.public.inetserver.asp.general:
i want to translate the page from one language to the other.

so i think, change the buffer is the best way.

if asp cann't do it on server side, i fill very sorry:_(

[This is not email, Xinggye, so please quote part of the text you are
answering on, so that others can follow your response.]

No, it is not the best way. Impossible ways are not that good.

I think I showed you a good way around your impossible request.

I am sorry you are sorry, it is not the way asp works.

=======================

Perhaps what you want is to serverside get the output of a page p1 to
manipulate in another page p2. That is something quite different.

Perhaps you could "get" your page p1 output locally and put the contents in
a string to manipulate by the asp code of page p2 ?
 
E

Evertjan.

xingye wrote on 11 apr 2004 in microsoft.public.inetserver.asp.general:
.....
I made a page in one language then translate it to anther language by
check user's accepted language if necessary. I do not want to redirect
user to anther page.

It seems you do not understand what I am saying. I was not talking about
redirecting. Please listen to what someone has to tell you in response to
your question, do not only read your preconceived ideas.

But let that be.

My advice to you is to send a different looking page to the user depending
on what language he wants. This is easily done with one single(!!!) asp
page, as I wrote in this NG just a year ago:

<http://groups.google.com/
groups?selm=Xns9356D86DC4880eejj99%40194.109.133.29>
 
X

xingye

Thank u very much. I finally recognized that my idea is impossible:(

I finish my website only with a function, it works well but slowly slowly...
 

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
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top