public async Task EducationalI(EducationalImageViewModel obj_Parameter, IFormFile EducationImage)-But I have a issue here Null Value.
i have use this upload file use this html code.
- @using (Html.BeginForm("EducationalI", "EducationalManagement", FormMethod.Post, new { id = "CreateForm", enctype = "multipart/form-data" }))
- {
- class="modal-content">class="modal-header">
class
="modal-title has-icon ms-icon-round "> Add New Image- class="close" data-dismiss="modal" aria-label="Close">"true">×
class="modal-body dnnn">- >
class="ms-form-group">- ="img">Select image:
- @Html.TextBoxFor(x => x.Image, new { @type = "file", @id = "image", @name = "EducationImage", @accept = "image/*", @required = "required" })
- @Html.ValidationMessageFor(x => x.Image, "", new { @class = "text-danger" })
class="ms-form-group has-icon">- ="choosecategory">Image Title
- @Html.TextBoxFor(x => x.Title, new { @type = "text", @id = "ImageName", @class = "form-control", @placeholder = "Enter Title", @required = "required" })
- @*"text" class="form-control" placeholder="Enter your Category">*@
- @Html.ValidationMessageFor(x => x.Title, "", new { @class = "text-danger", @style = "color:red;!important" })
class="ms-form-group has-icon">- ="choosecategory">Image Description
- @Html.TextBoxFor(x => x.Description, new { @type = "text", @id = "ImageDescription", @class = "form-control", @placeholder = "Enter Description", @required = "required" })
- @*"text" class="form-control" placeholder="Enter your Category">*@
- @Html.ValidationMessageFor(x => x.Description, "", new { @class = "text-danger", @style = "color:red;!important" })
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Laxmidhar SahooPosted Sep 17, 2020, 9:19 AM