I would like to add a button which enables to do an action and also refresh the current webpage. I don't understand why the following code doesn't work. In fact the action is performed but not the refresh.
<form class="form-search" action="@Url.RouteUrl("xx")" method="post"> <button type="submit" class="btn" onClick="window.location.reload();"></button> </form> Any advice?