abhishek singh

abhishek singh

  • NA
  • 160
  • 2.9k

How to select data from multiple table in mvc.

Mar 28 2017 6:55 AM
@foreach (DataRow row in Model.Tables["tbInsertMobile"].Rows)
{
<tr>
@* <td>@(row["MobileID"])
<input type="text" id="Txtmid" style="display:none"/>
</td>*@
<td>@(row["MobileName"])
<input type="text" id="Txtmob" style="display:none"/>
</td>
<td>@(row["MobileIMEno"])
<input type="text" id="TxtMEno" style="display:none;" />
</td>
<td>@(row["mobileprice"])
<input type="text" id="Txtprice" style="display:none" />
</td>
<td>@(row["mobileManufacured"])
<input type="text" id="TxtManufacured" style="display:none" />
</td>
<td><input type="button" value="Edit" id="btnedit" class="adt" /></td>
<td>
<input type="button" value="update" id="btnupdate" />
</td>
<td>
<input type="button" value="Delete" id="btndelete" />
</td>
</tr>
}

Answers (3)