Answers for "in asp.net core how to call a controll function on click"

C#
0

button action asp net

<input type="button" value="Create" onclick="location.href='@Url.Action("Create", "User")'" />
Posted by: Guest on August-12-2020
0

To call any action method from the view on button click

@using (Html.BeginForm("Edit", "Home", new { Id = emp.Id }, FormMethod.Get))
                            {
                                <button>EDIT</button>
                            }
@using (Html.BeginForm("Delete", "Home", new { Id = emp.Id }, FormMethod.Post))
                            {
                                <button>DELETE</button>
                            }
Posted by: Guest on May-07-2020

Code answers related to "in asp.net core how to call a controll function on click"

C# Answers by Framework

Browse Popular Code Answers by Language