I'm not a pro at Windows/ASP redirection, but I think these are pretty standard codes:
ASP:
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.yournewdomain.com"
%>
ASP.net:
private void Page_Load(object sender...