How to switch home page depending on IFrame
2 answers
The ViewResult that you return in your controller The Action has a MasterName property. Ask your controller action to get a parameter that tells it if you have an IFrame or not, and then you can do
if (isInIFrame)
{
ViewResult result = View();
result.MasterName = "IFrameMaster";
return result;
}
+2
source to share