With the implementation for the search textbox, after searching the search results are correctly displayed, but the search textbox is blank. Recommend:
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@aarongoldenthal great suggestion. I'll do that next doc update.
Alternatively to making it part of the model, it may be a good opportunity to show how to use ViewData when passing meta-data from page model. ie:
public async Task OnGetAsync(string movieGenre, string searchString)
{
ViewData["searchString"] = searchString;
//code code code
}
Title: <input type="text" name="SearchString" value="@ViewData["searchString"]">
Most helpful comment
Alternatively to making it part of the model, it may be a good opportunity to show how to use ViewData when passing meta-data from page model. ie: