H
Harald Rønning
Hi
I´m trying to redirect using asp and found these exemple on
Internet
Using
ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently";
Response.AddHeader("Location","http://mygoodstart.com/");
%>
I got this error:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/index.asp, line 3
Response.Status="301 Moved Permanently";
---------------------------------------^
Using
ASP .NET Redirect
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://mygoodstart.com");
}
</script>
I got this error
Active Server Pages error 'ASP 0124'
Missing Language attribute
/index.asp, line 1
The required Language attribute of the Script tag is missing.
Can somebody please help me to get one of them to work
Regards
Harald
I´m trying to redirect using asp and found these exemple on
Internet
Using
ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently";
Response.AddHeader("Location","http://mygoodstart.com/");
%>
I got this error:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/index.asp, line 3
Response.Status="301 Moved Permanently";
---------------------------------------^
Using
ASP .NET Redirect
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://mygoodstart.com");
}
</script>
I got this error
Active Server Pages error 'ASP 0124'
Missing Language attribute
/index.asp, line 1
The required Language attribute of the Script tag is missing.
Can somebody please help me to get one of them to work
Regards
Harald