tucker Posted November 27, 2012 Report Posted November 27, 2012 i had an Add, Update, delete buttons on view page like <input type="submit" value="Add"> in controller class public ActionResult Add() { ............................. } when i click the button it is not hitting the method. How to link them to eachother??? Evarikina telisthe tvaraga cheppandi.... Quote
annu11abcdef Posted November 28, 2012 Report Posted November 28, 2012 Try this buddy. @Html.ActionLink("Delete", "Delete", new { id = item.ID }) Using Button <input type="button" title="Delete" value="D" onclick="location.href='@Url.Action("Delete", "movies", new { id = item.ID })'" /> Using Image <a href="@Url.Action("Delete", "movies", new { id = item.ID })" title="Edit"> <img src="../../Content/Images/Delete.png" /> </a> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.