I have a slightly simpler method:
return View("View", getMasterName());
and in my main controller I have:
protected string getMasterName() { return (Request.QueryString["tb"] == null) ? null : "Other_Master"; }
I use it to display another template in the case of a thick vs vs popup window if, for example, javascript does not work and the controller boots without a thick window.
source share