|
Question : C# equivalent of javascript's location.replace() function?
|
|
I often use the javascript location.replace() function to redirect a browser to a new page without adding to the history. Is there a way to do this using only server side code? Or, is there a way to have the server call the necessary client-side function?
|
|
Answer : C# equivalent of javascript's location.replace() function?
|
|
It's HttpServerUtility.Transfer(string, bool), which equivalent to Server.Transfer(string, bool) in code behind.
|
|
|
|