The asp.net model is that the page declared in the .aspx file is a subject class of descendants of the class that inherits from System.Web.UI.Page declared in the .aspx.cs file.
So, the Page_Load method is called because it basically hides the original Page_Load method. Following this logic, you can do:
<script language="CS" runat="server"> void Page_Load(object sender, System.EventArgs e) { base.Page_Load(sender, e);
There is no problem with accessibility, since asp.net by default declares Page_Load and similar methods as protected , so descendant classes can call them.
Sweko
source share