我想知道在哪里添加Page.ClientScript.RegisterStartupScript。
这就是我用它们的目的:
Page.ClientScript.RegisterStartupScript(this.GetType(), "InitializeEventHandlers", "focusController.initializeFocusController(false);", true);
Page.ClientScript.RegisterStartupScript(this.GetType(), "InitializeCustomScrollbar", "toggleScrollBarVisibility();", true);
Page.ClientScript.RegisterStartupScript(this.GetType(), "InitializeWindowResize", "handleResizeEvent();", true);