Hello,
I'm porting the old ASP.NET webForm project to ASP.NET Core MVC. I'm now cannot find the proper way to do the same work like ClientScript.RegisterStartupScript() method in ASP.NET.
My target is to execute JS method when the page finishes loading but before the page's OnLoad event is raised.
Old code: ClientScript.RegisterStartupScript(this.GetType(), "windowLoad()", "<script language='JavaScript'>windowLoad()</script>");
if there're alternative ways to achieve it, please give me some code samples.
Thanks