Hi
In below code Html.Beginform portion can be called thru Partial View.
@foreach (var item in Model)
{
@Html.DisplayFor(modelItem => item.Id)
@Html.DisplayFor(modelItem => item.Description)
@Html.DisplayFor(modelItem => item.IsActive)
Edit
Delete
@using (Html.BeginForm("DeleteLocation", "Location", new { id = item.Id }, FormMethod.Post, null))
{
@Html.AntiForgeryToken()
}
}
************************************* I want below code to be created as Partial View . To This Action , Controller , Parameter should be passed
@using (Html.BeginForm("DeleteLocation", "Location", new { id = item.Id }, FormMethod.Post, null))
{
@Html.AntiForgeryToken()
Thanks
Jignesh KumarPosted Jun 13, 2021, 8:23 AM
Rajendran SPosted Jun 13, 2021, 2:41 AM
Salman BegPosted Jun 12, 2021, 3:12 AM