Here's my page...
public class MyPage : PageModel
{
[BindProperty(SupportsGet = true)]
public DateTime? StartDate { get; set; }
[BindProperty(SupportsGet = true)]
public DateTime? EndDate { get; set; }
public async Task<IActionResult> OnGetAsync()
{
if (ModelState.IsValid)
{
await Task.Delay(1);
}
return Page();
}
}
This is the query string...
?StartDate=29%2F10%2F2018&EndDate=31%2F10%2F2018
But the properties are always null.
What am I missing?