Skip to content

Instantly share code, notes, and snippets.

@kdhollow
Created February 25, 2016 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdhollow/b9642b1fd8286b4ef241 to your computer and use it in GitHub Desktop.
Save kdhollow/b9642b1fd8286b4ef241 to your computer and use it in GitHub Desktop.
@using AFDSearch.Models
@model AirportSearch
@{
ViewBag.Title = "Airport Search";
}
@using (Html.BeginForm("Search", "Airport", FormMethod.Post))
{
@Html.TextBoxFor(m => m.SearchText)
<input type="submit" value="Search" />
}
<style>
table, th, td {
border: 1px solid black;
padding: 5px;
}
table {
border-spacing: 15px;
}
</style>
<table>
<tr>
<th>Identifier</th>
<th>Name</th>
<th>City</th>
<th>State</th>
<th>Chart</th>
<th>Region</th>
<th>Airport Facilities Directory</th>
</tr>
@foreach (Airport airport in Model.AirportSearchResults)
{
<tr>
<td>@airport.Identifier</td>
<td>@airport.Name</td>
<td>@airport.City</td>
<td>@airport.State</td>
<td>@airport.Chart</td>
<td>@airport.Region</td>
<td><a href="@airport.AfdLink">@airport.AfdLink</a></td>
</tr>
}
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment