Tried sending model back to controller but now unsure of how to do so

This commit is contained in:
Luke Else 2022-02-11 20:55:53 +00:00
parent a4e7a30a9f
commit 39cc7caef7

View File

@ -6,10 +6,6 @@
<div class="row d-flex justify-content-center">
<div class="card-body col-md-4">
<div class="container jumbotron">
<h3>Chart Lookup</h3>
<br />
<br />
<form asp-controller="Charts" asp-action="Index">
<div class="form-group">
@ -30,32 +26,22 @@
}
}
</form>
</div>
<div class="container jumbotron">
<h3>Charts for: @Model.ICAO</h3>
<br />
<br />
<h4>Charts for: @Model.ICAO</h4>
<form asp-controller="Charts" asp-action="Index">
<div class="form-group">
<input type="text" class="form-control" placeholder="ICAO Code" name="ICAO" value="@TempData["ICAO"]">
</div>
<button type="submit" class="btn btn-secondary">Search</button>
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle bg-dark" type="button" data-toggle="dropdown">Dropdown Example
<span class="caret"></span></button>
<ul class="dropdown-menu">
@{
foreach (var item in Model.Approach)
{
<li><button class="bg-dark" runat="server" onclick=""></button></li>
@{
if (TempData["Error"] != null)
{//If an error has been flagged, information will be displayed to the user
<br />
<br />
<div class="alert alert-danger">
<strong>Warning!</strong> @TempData["Error"] <button type='button' class='close' data-dismiss='alert' aria-hidden='true' />&times;
</div>
}
}
}
</form>
</ul>
</div>
</div>
</div>