I have 2 table inside a form as such
@using (Html.BeginForm("EditData", "Edit", FormMethod.Post, new { id = "SubmitForm", role = "form", enctype = "multipart/form-data" }))
{
<table>
<tr>
.....
<td>
<input type="hidden" name="FacilityId" value="@datas.data1" />
</td>
</tr>
</table>
<table id="tableid2" name ="tablename2">
<tr>
....
<td>
<input type="hidden" name="FacilityId" value="@datas.data1" />
....
</td>
</tr>
</table>
}
using the method post i have managed to get the datas in the controller.
string[] targetids = Request.Form["FacilityId"].Split(',');
But i have no way of differentiating the data of table 1 and 2. Is there any way to differentiate between these 2 tables? Note : since i cloned the data from table 1 to table 2 I have no way of changing the table name manually. and im unfortunately not allowed to move the begin form to only include table2