TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
menna samitr
NA
240
1.6k
jquery Repeater Returns Null to MVC Controller on Submitting
Aug 7 2020 4:18 AM
I have a problem when I post Form all data returns null value to controller
I need Steps To Solve this problem
this is my code
<link href=
"~/assets/css/bootstrap.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link href=
"~/assets/css/jquery-ui.min.css"
rel=
"stylesheet"
>
<link href=
"~/assets/css/icons.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link href=
"~/assets/css/metisMenu.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link href=
"~/plugins/daterangepicker/daterangepicker.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link href=
"~/assets/css/app.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<h
2
>test</h
2
>
<div class=
"row"
>
<div class=
"col-12"
>
<div class=
"card"
>
<div class=
"card-body"
>
@using (Html.BeginForm(actionName:
"uu"
,
controllerName:
"Employee"
,
method: FormMethod.Post,
htmlAttributes: new { enctype =
"multipart/form-data"
, @id =
"form-horizontal"
, @class =
"form-horizontal form-wizard-wrapper text-right form-parsley"
}
))
{
@Html.AntiForgeryToken()
<fieldset>
<div class=
"repeater-default"
>
<div data-repeater-list=
"car"
>
<div data-repeater-item=
""
>
<div class=
"form-group row d-flex align-items-end"
>
<div class=
"col-sm-4"
>
<label class=
"control-label"
>Imprest</label>
@Html.DropDownList(
"Imprest"
, new SelectList(ViewBag.Imprests as System.Collections.IEnumerable,
"id"
,
"ImprestName"
),
"--Choose--"
, new { @class =
"form-control drop"
, @id =
"dropImp"
})
</div><!--end col-->
<div class=
"col-sm-4"
>
<label class=
"control-label"
>Imprest Type</label>
@Html.TextBox(
"ImprestType"
, null, new { @Type =
"text"
, @class =
"form-control"
, @autocomplete =
"off"
, @id =
"txtimp"
})
</div><!--end col-->
<div class=
"col-sm-1"
>
<span data-repeater-delete=
""
class=
"btn btn-danger btn-sm"
>
<span class=
"far fa-trash-alt mr-1"
></span> Delete
</span>
</div><!--end col-->
</div><!--end row-->
</div><!--end /div-->
</div><!--end repet-list-->
<div class=
"form-group mb-0 row"
>
<div class=
"col-sm-12"
>
<span data-repeater-create=
""
class=
"btn btn-secondary btn-sm"
>
<span class=
"fas fa-plus"
></span> Add
</span>
<input type=
"submit"
value=
"Submit"
class=
"btn btn-primary btn-sm"
>
</div><!--end col-->
</div><!--end row-->
</div> <!--end repeter-->
</fieldset><!--end fieldset-->
}
</div><!--end card-body-->
</div><!--end card-->
</div> <!-- end col -->
</div>
<script src=
"~/assets/js/jquery.min.js"
></script>
<script src=
"~/assets/js/bootstrap.bundle.min.js"
></script>
<script src=
"~/assets/js/metismenu.min.js"
></script>
<script src=
"~/assets/js/waves.js"
></script>
<script src=
"~/assets/js/feather.min.js"
></script>
<script src=
"~/assets/js/simplebar.min.js"
></script>
<script src=
"~/assets/js/jquery-ui.min.js"
></script>
<script src=
"~/assets/js/moment.js"
></script>
<script src=
"~/plugins/daterangepicker/daterangepicker.js"
></script>
<script src=
"~/plugins/repeater/jquery.repeater.min.js"
></script>
<script src=
"~/assets/pages/jquery.form-repeater.js"
></script>
<!-- App js -->
<script src=
"~/assets/js/app.js"
></script>
Reply
Answers (
3
)
upload image from one page to another page
Error while fetching data from Json File in Javascript