I have an asp MVC. net project.
In the view (.cshtml) I want to open an url, but I want to force to open that url with ONLY FIREFOX browse. That mean: if the user is using Edge/Chrome to navigate in our WEB app, but want to see that view, that link must be opened ONLY with firefox.
That's the first thing we need. But at the same time, that URL opened with firefox, we need to "embed" inside the main view (.cshtml) in Edge/Chrome using the "object" tag (or "iframe"). This is the code:
@{
string cadena = "https://URL?rs:embed=true";
}
<div class="container">
<!--Open this url with FIREFOX and embed it inside the web app opened with Edge/Chrome--->
<object class="iframe" data=@cadena></object>
</div>
And the controller is just:
public ActionResult SeeReport()
{
return View();
}