<table>
@foreach(var items in Model)
{
<tr>
<td>@items.name</td>
<td>@items.designation</td>
<td>@items.salary</td>
</tr>
}
</table>
The code works fine when written directly on cshtml page.
If I use @Html.Raw(items.data)
it shows the code instead of data/Values.
My requirement is to store the above code in database and display records stored in database and process it at runtime. I want to fetch data by the code.