E
Ersin Gençtürk
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.
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.