I'm currently working on an MVC project where I have successfully created a table. Everything is functioning properly, but now I need to implement a feature where clicking on a link in a specific row opens a popup form displaying the data from that row's column.
File: Students.cshtml
<tr>
<td style="font-weight:bold; text-align: center;">
Sl No
</td>
<td style="font-weight:bold; text-align: center;">
Name
</td>
<td style="font-weight:bold; text-align: center;">
div
</td>
<td style="font-weight:bold; text-align: center;">
<a href="@Url.Action("Home", "Admin", new { id = @item.ID})">
<i class="fa fa-plus-circle" aria-hidden="true"></i>
</a>
</td>
</tr>
I am facing a challenge in figuring out how to pass the data from the Students.cshtml form to the popup form. Specifically, I need to include the Sl.No, Name, and div information in the popup form. Do I need to write AJAX script for the popup? If so, how can I pass the data? Any help or solution would be greatly appreciated. Thank you!