Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COYup; just to add, because I'm not sure the OP understands this; "hidden" fields are no different than any other form fields when it comes to what is sent to the server. *One minor change* in the above: Technically, you are supposed to use the `name` attribute, rather than the `id` attribute for what the name of a value is the browser sends on form submit. The browser will *use* `id` if you don't include a `name`, but it's best to use name from the start. Also, there can be multiple input tags with the same name, but only one with each id.
      singulars
    2. CO@Ethan Pelton : Thanks for reply. Actually I had already used the same id value on both View and Controller as shown above. The problem is actually related to Delete action due to hidden field. Because I can easily open Edit form by pressing Edit icon on the View (in the GridView column), but I cannot call Delete Post method. On the other hand I have tried lot of time using "@using (Html.BeginForm("Delete", "Admin"))" and "@Html.Hidden("ApplicantID", item.ApplicantID)" properties on different places on the form. But it did not make any sense. >>>
      singulars
    3. CO>>> So, I would be happy that if you clarify me about how can I change my helper method and the action lines "@Html.ActionImage("../../Content/detail.png", "Detail", "icon-link", "Detail", "Admin", new { applicantId = item.ApplicantID }).ToString()" on the View. In addition to this I think I should use "@using (Html.BeginForm()" on the correct place. Could you also give an example with my code? Thank you very much for all of your consideration.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload