با سلام.
کد زیر را در layout نوشتم:
<div class="widget-main"> @using (Html.BeginForm("InsertAssertionScientificcontent", "Admin", FormMethod.Post, new { @class = "form-horizontal", enctype = "multipart/form-data" })) { @Html.AntiForgeryToken() <div class="form-group" style="margin-bottom:20px;"> <div style="width:150px;"> <div style="border-style:solid;border-width:1px;width:150px;height:200px;margin-bottom:20px;"> <img id="imgAddAssertion" style="width:150px;height:200px;" /> </div> </div> @*<div class="form-group"> <label for="exampleInputEmail1">فایل عکس</label> <input type="file" style="margin:15px 0px 15px 0;" name="File" accept=".jpg" id="ImgAssertion" /> </div>*@ <div class="form-group" style="height:100px;"> <label for="exampleInputEmail1"> عنوان اطلاعیه را بنویسید</label> @Html.TextBoxFor(x => x.Title, new { @class = "form-control integer", @id = "TecherCodeMelli", style = "font-family:'W_YEKAN_0';text-align:right;width:88%;height:40px;font-size:20px" }) @Html.ValidationMessageFor(x => x.Title, string.Empty, new { style = "margin-right:20px;font-weight:bold;" }) </div> <div class="form-group"> <label for="exampleInputEmail1"> متن اطلاعیه را بنویسید</label> <textarea name="Text" id="Createcontent" class="ckeditor"></textarea> </div> <label for="exampleInputEmail1"> </label> </div> <button type="submit" class="btn btn-success" style="font-family: 'W_YEKAN_0';">ثبت </button> } </div>
اما وقتی دکمه را می زنم با اررور زیر مواجه می شوم و داخل اکشن نمی رود:
aspxerrorpath=/Admin/InsertAssertionScientificcontent
لطفلا راهنمایی کنید
با تشکر
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)