I want to make a Javascript popup asking if I want to delete a listing.
Here is what I have at the moment (Doesn't work - Guid is null when catched by the Controller).
@Html.ActionLink("Delete", "Delete", "Listing", listing.Guid, new { onclick = "return confirm('Are you sure you want to delete this listing?')" })
The first Delete is the string, the second Delete is the ActionName of the method, Listing is the Controller name, listing.Guid is the parameter which I want to send across and lastly, of course, the onclick is the Javascript.
Any idea where I may be going horribly wrong?
Edit Also, any idea how I can have a more pretty confirmation dialog box? Using Bootstrap.