And then styled the form and button to look like a link.... that could work around it.
Although to do it properly you'd want to use @using(Html.BeginUmbracoForm.... (Sorry don't have the full syntax for this at hand) to generate the form tags. As this would do the full Umbraco routing and I'm not sure the first option would.
ActionLink
Hi everyone, I have an ActionLink to call a delete method within a controller
The problem is a ActionLink is an Get method and I can’t do a return CurrentUmbracoPage() form a Get method.
The ActionLink is generated within a table to delete records.
Any ideas how I can call a deleted method within a controller and then return the user back to the same page?
Tom
Hi Tom,
You could work around it by using a form and a post method.
If you did something like
And then styled the form and button to look like a link.... that could work around it.
Although to do it properly you'd want to use
@using(Html.BeginUmbracoForm
.... (Sorry don't have the full syntax for this at hand) to generate the form tags. As this would do the full Umbraco routing and I'm not sure the first option would.Thanks
Nik
Hi Nik,
Within the controller how would I get the value="@d.ID
Tom
is working on a reply...