Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

MVC @Request["someName"] is there an equivalent in Core Razor Pages

$
0
0

In MVC after postback I can persist a hiddenfield value using

<input type="hidden" id="hdfSearchType" name="hdfSearchType" value="@Request["hdfSearchType"]" />

How can I have same behavior in Razor Pages other than using page property like

<input type="hidden" asp-for="hdfSearchType" name="hdfSearchType" />


Viewing all articles
Browse latest Browse all 9386

Trending Articles