client side pageLoad() RRS feed

  • Question

  • User1024191908 posted

    I have a web form and using an script manager I can have a pageLoad() function which is supposed to be called on page loads.

    but only when I run it on edge and ie 11 it is raised and on other browsers it isn't.

    I have lots of other js code on my page(third parties).

    is the problem caused by those js files?

    how can I diagnose this problem?

    thanks in advance.

    Sunday, March 11, 2018 7:42 AM


  • User-1838255255 posted

    Hi anooshiravan,

    After reading your description, i make a sample to test through your description, i tested it in Chrome, IE, Edge, i found it works. Here is my test code, please check:

    <head runat="server">
            function pageLoad() {
    protected void Page_Load(object sender, EventArgs e)
                Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "pageLoad()", true);

    You say it doesn't work in the other browsers, could you post the detailed error message if you meet? Also i hope you could post your complete sample code for us to test. 

    Best Regards,

    Eric Du 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 12, 2018 7:56 AM