Hey I’m trying to get this working but I am not a c# programmer. i got this code to display you what i would like to do. but of cause its not working. Error: CS1519: Invalid Token…
<%@ Page Language="c#" AutoEventWireup="true" %>
<script language="C#" runat="server">
if(Request.ServerVariables["HTTP_HOST"] === "this-domain.com"){
Response.Redirect("http://other-domain.com", true);
}
</script>
Microsoft .NET Framework-Version:2.0.50727.3603; ASP.NET-Version:2.0.50727.3601
Should be
And you need to enclose the whole statement in bee stings
<% %>