<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.FlightDeparture)
</td>
<td>
@Html.DisplayFor(modelItem => item.FlightDuration)
</td>
<td>
@Html.DisplayFor(modelItem => item.FlightArrival)
</td>
<td>
@Html.DisplayFor(modelItem => item.FlightStatus)
</td>
<td>
**@Html.DisplayFor(modelItem => item.FlightPrice)**
</td>
<td>
<td class="text-center">
<a asp-action="AddOrEdit" class="btn btn-outline-primary" asp-route-FlightsId="@item.FlightsId">Edit</a>
</td>
<td class="text-center">
<a asp-action="Details" class="btn btn-outline-info" asp-route-FlightsId="@item.FlightsId">Details</a>
</td>
<td class="text-center">
<a asp-action="Delete" class="btn btn-outline-danger" asp-route-FlightsId="@item.FlightsId" new { onclick="return confirm('Are sure wants to delete this flight?');" })>Delete</a>
</td>
</tr>
}
</tbody>
How to display the Rupee symbol (₹) in the FlightPrice column of my table in an ASP.NET MVC application?
Like this -> ex: 65000 to -> ₹65000
New contributor
SV Captain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.