Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Web サービスを呼び出して iFrame の URL を作成するコントローラーがあります。ビューとモデルを作成し、iFrame のこの URL をビューに渡す必要があります。それ、どうやったら出来るの?ありがとう。
// Controller ViewBag.IframeUrl = theIframeUrl; View("ViewName"); //View <iframe src="@ViewBag.IframeUrl"></iframe>
これが最も簡単な方法です。問題によっては、モデル/ビューモデルを使用したい場合があります。