2009-08-26 43 views

回答

2

是什麼阻止你做你的行動裏下列?

return Redirect("http://www.otherapp.com/product/category"); 

如果你不想硬編碼http://www.otherapp.com,那麼你可以把配置你的web.config文件中爲它設置...?

0

您可以使用RedirectResult:

public ActionResult SomeAction() 
{ 
    // do stuff... 
    return Redirect("http://myurl.com"); 
} 
相關問題