locked
Deleting in MVC Project RRS feed

  • Question

  •  @using (Html.BeginForm()) {
            @Html.AntiForgeryToken()

            <div class="form-actions no-color">
                <input type="submit" value="Delete" class="btn btn-default" /> |
                 this line ===> @Html.ActionLink("Back to List", "Index")

            </div>
        }

    I don't want this action. 

    when I to do delete action from Index page after than delete data and back to Index page directly.

    how I to do it ? 

    When I use @html in mvc script or orther way ?

    thank 

                


    • Edited by Banjop Monday, January 29, 2018 2:20 PM
    • Moved by CoolDadTx Monday, January 29, 2018 3:36 PM ASP.NET related
    Monday, January 29, 2018 2:19 PM

All replies

  • Please post questions related to ASP.NET in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Monday, January 29, 2018 3:36 PM