Hi, I run a small affiliate site which has a forwarding page to the merchant's site. In Firefox this works fine however in IE 6 & 7 the page doesn't forward and seems to just keep reloading itself. The site was built in aspx but my developer is on his hols. Can anybody help me with the code below to ensure the page forwards in IE? I would really appreciate it. <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Plan>" %> <%@ Import Namespace="Middleman.Rental.Domain"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Loading <%=Model.Company.Name %></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="imagetoolbar" content="no" /> <meta http-equiv="refresh" content="<%="1;" + ViewData["AffiliateURL"] %>"> <style type="text/css" media="screen"> @import "<%=Url.Content("~/Content/css/layout.css") %>"; </style> </head> <body> <div class="dispatchText" style="text-align: center"> Loading <img src="<%=Url.Content("~/Writing/Companies/" + Model.Company.LogoFileName) %>" />... <br /><br /><br /> You are now being transferred to <%=Model.Company.Name %>, <br /> please follow the instructions on site to sign up and <br /> take advantage of the special offer. </div> </body> </html>
if i were you i would stay away from meta refresh redirects, even when if it works on browsers you are facing serious SEO penalties. in asp use instead: Response.StatusCode = 301; Response.Redirect([targetUrl]);