Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Post Multiple Rows from Html.BeginForm to Controller

$
0
0

Hello 

I need to post multiple rows of  to IActionresult, I am currently using Ajax to post it But I would like to use 

@using (Html.BeginForm("Test", "myController", FormMethod.Post))
{

}

I am using loop to create these controllers for posting them using Ajax 

<div class="col-md-6 col-sm-6 col-xs-12"><input id="@Html.DisplayName("name" + Convert.ToString(i))" class="form-control col-md-7 col-xs-12"  name="name" placeholder="Full Name" required="required" type="text"></div>

I read many articles, but all not working. 

any IDEA? 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>