hi again , thnx for suggestions friends.
But the important part is not response.write here , because basically it has
no effect on this point.
My problem was about client side as Ethem said.It is a way to close cache
but , I need to load pages from browser cache , not again.So I can not send
browser a expires immediate like header.
One of the ways that I thought was while alerting to the user , giving that
alert a unique Id and storing it into a cookie , and in the jscript code ,
at first popup , setting a true cookie value , so when the user hits back
button of the browser , jscript code runs again in the client side , but it
will found that cookie value is setted to true before so it will not show
message box again.But I am searching for other ways (also not so
complicated ) to do it (of course this is an issue with client side jscript
code)
thnx again,selamlar
"Ersin Gençtürk" <ers[spam]@gencturk.org> wrote in message
news:ed**************@TK2MSFTNGP10.phx.gbl...
hi,
I wrote a function like this :
public static void Alert(string message){
message=message.Replace("'","\'");
message=message.Replace("\n","\\n");
Response.Write("<script>alert('"+message+"');</script>");
}
this function is showing an alert box when necessary but when the user
navigate to another page and click back button of the browser then the
last error message shown again (as excepted because script is written top of
the page) but is there an event that I can capture if the user navigates to
the page first time ? and disable showing of the error ? ) I want a simple way
I solve this by using client time , server time etc.