Asp.net mvc RedirectToAction如何确定网站何时从Internet消费?
我一直在使用ASP.NET MVC版本1开发一个网站,该版本部署在Windows Server 2008 R2(IIS7,集成模式)中。该网站在intranet环境下运行良好,但最近以公共域名在Internet上发布。RedirectToAction仍然针对私有IP,导致重定向到登录页面。在哪里可以指定更改 对于notAnExpert请愿书,我的代码摘录。这里没有什么特别之处,只有默认约定:Asp.net mvc RedirectToAction如何确定网站何时从Internet消费?,asp.net-mvc,iis-7,Asp.net Mvc,Iis 7,我一直在使用ASP.NET MVC版本1开发一个网站,该版本部署在Windows Server 2008 R2(IIS7,集成模式)中。该网站在intranet环境下运行良好,但最近以公共域名在Internet上发布。RedirectToAction仍然针对私有IP,导致重定向到登录页面。在哪里可以指定更改 对于notAnExpert请愿书,我的代码摘录。这里没有什么特别之处,只有默认约定: return RedirectToAction(string.Format("Details/{0}",
return RedirectToAction(string.Format("Details/{0}", CampaignId), "Campaigns");
在my Global.asax中:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute("clicked_links", "Clicked/Index", new { controller="Clicked", action="Index"});
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
}
我的错伙计们,在我看来
<form action=<% Request.URL %>
您能否发布代码说明重定向操作的外观。或者,您可能需要查看您的RouteHandler