Ich habe eine Shiny App erstellt und möchte den gleichen Inhalt meiner shinyapp App in meine C # Applikation einfügen. Wenn es irgendeinen Weg gibt, das zu tun?
Antworten:
1 für die Antwort № 1Eine Möglichkeit, dies zu tun, ist, wie ich es für mein Team aufstelle, damit wir das Beste aus beiden Welten nutzen können iframe
. Wenn du es benutzt MVC
dann sollte so etwas tun:
Controller.cs
using System.Web.Mvc;
namespace Dashboard.Controllers
{
public class ShinyController : Controller
{
public ActionResult Index()
{
ViewBag.IFrameSrc = "Address to your shiny app";
return View();
}
}
}
Index.cshtml
<iframe style="border: 0; position:relative; width:100%; height:100%" src="@ViewBag.IFrameSrc"></iframe>