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

Salman BegRank #284 · 8.8K reputationPosted Jun 11, 2021, 11:12 PM EDT
Rajendran SRank #2,222 · 632 reputationPosted Jun 12, 2021, 10:41 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 13, 2021, 4:23 AM EDT