Created
July 3, 2024 15:13
-
-
Save wchesley/a7def41c702d3565f81dc49008502410 to your computer and use it in GitHub Desktop.
ASP.NET Core Search Partial View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="d-flex flex-column col-sm-4"> | |
<form asp-action="Index" method="get"> | |
<div class="form-actions no-color"> | |
<p> | |
Search: <input type="text" name="SearchString" value="@ViewData["CurrentFilter"]" class="form-control" style="margin:2%"/> | |
<input type="submit" value="Search" role="button" /> | | |
<a asp-action="Index" class="secondary" role="button">Back to Full List</a> | |
</p> | |
</div> | |
</form> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment