📜  上传文件视图 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:07.956000             🧑  作者: Mango

代码示例1
@{
    ViewBag.Title = "UploadFile";
}

UploadFile

@using (Html.BeginForm("UploadFile", "Home", FormMethod.Post, new { enctype = "multipart/form-data" })) {
@Html.TextBox("file", "", new { type = "file" })
@ViewBag.Message
}