With ASP.NET MVC 3, I am trying to migrate a webform page to a Razor page.
I could not find a way to migrate this kind of code I used this kind of code in webforms:
<script runat="server">
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
my other code here...
}
</script>
I could not find a way to translate this in Razor.