i'm placing a automatic redirect on my Classic ASP page (vb). i want to call the url from a variable (url2) versus hardcoding it. just need to know what the right syntax is. this is my current code:
Response.AddHeader("REFRESH","10;URL=url2")
i'm placing a automatic redirect on my Classic ASP page (vb). i want to call the url from a variable (url2) versus hardcoding it. just need to know what the right syntax is. this is my current code:
Response.AddHeader("REFRESH","10;URL=url2")
The refresh header is not officially standardised. This means every browser may implement it differently. I'd recommend using normal HTTP casing, like the following:
Response.AddHeader "Refresh", "10; url=" & url2
[Edited to reflect new information from poster]
Otherwise there doesn't seem to be an issue, although if it doesn't still work I'd suspect ASP.NET may strip out the header some place else for its own purposes.
In ASP-Classic/VBScipt:-
Response.AddHeader "Refresh", "10;url=" & strUrl
You don't use ( ) when calling methods from which you do not accept a return value.