There is bad practice to perform a deletion via a request received, so I used to asp.net mvc A 'post' has been deleted only supports the post + (as far as I know) get the request
Please note that I try to avoid javascript / jquery where I can easily remove (even put) the request.
I have put the form on each page for each item of the item. I have also managed the post in the style / submit button to look like a button, but the things are still very good Do not look 'delete' link slightly offset it is almost code:
using & lt;% (HTML banffform ("deleteX", "xs", formmath.post , New {@ class = "deleteForm"})) {%> & Lt;% = x.Name% & gt; & Lt;% = Html.Hidden ("Id", x.ed)%> & Lt; Input type = "submit" value = "delete" category = "link_button" /> & Lt;%}% & gt;
And this is CSS
.link_button {background color: white; Border: 0; Color: # 034af3; Text decoration: underlined; Font-size: 1em; Font-family: heirs; Cursor: indicator; Swim left; Margin: 0; Padding: 0; } .deleteForm {float: right; Margin: 0; Padding: 0; }
Has anything else done this successfully?
Do you have any feedback that 'post' and 'esp' To remove MVC?
Is this the right way to do the job?
Thank you.
Good luck,
Christian
About Style Can not help you, just a little clarification about HTTP verbs ASP.NET MVC supports all verbs, post, put, delete - the problem is only from those browsers which only support GET and POST Are there. You can simulate them using the helper:
& lt;% = Html.HttpMethodOverride (HttpVerbs.Delete)%>
And in your controller's action:
[Remove HTTP] Destruction of the public action result (see ID) {View (); }
Comments
Post a Comment