1
私は脳のおならを少し持っています。それは月曜日でなければなりません...ASP.NET MVCフォーム提出
私はMVCフォームを持っています。これはユーザーが画像を投稿できるようにします。
イメージはフォルダに保存され、別のコントローラとアクションにリダイレクトしてイメージを表示します。
イメージを表示するためにコントローラのアクションにイメージ名とパスを戻すためのオプションは何ですか?
// Handles the updload, contains a control (ascx)
// and the control's action method is in another controller
public ActionResult Index()
{
return View();
}
// I want this page to display the image uploaded in the Upload.ascx control
// that is in the index method above:
public ActionResult Result()
{
ViewData["MyImage"] = ???
}
ありがとうございます。
ハザードチェーバーガー?これが私の考えであれば、あなたはそれを得るでしょう。 –