BioloMICS logo
×
BioloMICS Web Menu

A field in razor (Array discrete data)

 
 
The A field has subfields and each have to be called individually.
 
        <tr>
            <td width=50%>Yeasts Physiological Tests - Glucose</td>
            <td>
                <span>@Model.A211.A211_1</span>
            </td>
        </tr>
        <tr>
            <td width=50%>Yeasts Physiological Tests - Galactose</td>
            <td>
                <span>@Model.A211.A211_2</span>
            </td>
        </tr>
 
 
Extra explanation on the code:
 
  • width=50% this fixes the width of the cell in the left column. This is optional.
     
  • .A211.A211_1 first call the A field, then call the wanted subfield.
     
 
 
The code placed in a table:
 
<table class="table">
    <thead>
    </thead>
    <tbody>
        <tr>
            <td width=50%>Yeasts Physiological Tests - Glucose</td>
            <td>
                <span>@Model.A211.A211_1</span>
            </td>
        </tr>
        <tr>
            <td width=50%>Yeasts Physiological Tests - Galactose</td>
            <td>
                <span>@Model.A211.A211_2</span>
            </td>
        </tr>
    </tbody>
</table>