Put hyperlinks in html / asp.net and save to cookies

0

The question is the following, I have the form presented below:

The'Mark'linkallowsyoutoselectthe'Person'element(nameofthedatabasetablewiththeforminformation).Therequestformarkingmustbedonebyclickingonthelinkandtheinformationwillhavetobestoredina'cookie'.Savedtheinformationinthecookiewemustpresentintheviewthefollowingchange:

I'vealreadysubmittedtheform:

@modelIEnumerable<Normal14.Models.pessoa>@{ViewBag.Title="index";
 }

 <h2>MP4 - Época Normal</h2>
 <br/>

 <table class="table">
     <tr>
         <th>
             @Html.DisplayNameFor(model => model.Nome)
         </th>
         <th>
             @Html.DisplayNameFor(model => model.Idade)
         </th>
         <th>
             Operação
         </th>

     </tr>


     @foreach (var item in Model)
     {
         <tr>
             <td>
                 @Html.DisplayFor(modelItem => item.Nome)
             </td>
             <td>
                 @Html.DisplayFor(modelItem => item.Idade)
             </td>
             <td>
                     @Html.ActionLink("Marcar", "Marcar", new { id = item.ID 
 })
             </td>

         </tr>
     }

 </table>

 @Html.ActionLink("Remover Selecinados", "RemoverSelecionados")

I do not know what to do to receive and save the value in the controller and save it in the View and modify the hyperlink. Help pf

    
asked by anonymous 01.02.2018 / 19:18

0 answers