Page_Load event not firing

Discussion in 'ASP .Net' started by Brad Wood, Dec 17, 2004.

  1. Brad Wood

    Brad Wood Guest

    I've built a simple ASP app that runs fine on my desktop. When I deploy
    it to a server, the page opens, but the Page_Load doesn't fire. I'm
    setting the text of a label in the event, and the label always shows
    it's static text.

    When I change the static text of the page and re-upload, the new static
    text appears. I even downloaded the page's .dll on the server and
    opened it with reflector and verified that code exists for the page
    event and that the method is wired up to the page's handler for the load

    Is there some setting or security configuration on the server that is
    preventing ASP code from running (I don't know that the page would load
    at all if this was the case)? What else might be causing this?
    Brad Wood, Dec 17, 2004
    1. Advertisements

  2. Brad Wood

    Guest Guest

    Has the page lost it's knowledge of the appropriate code-behind? Is the
    server tag at the top of the html correct?

    Was the aspx somehow excluded from the project so that the compile did not
    keep any code-behind?

    Guest, Dec 17, 2004
    1. Advertisements

  3. Brad Wood

    Brad Wood Guest

    The main server tag looks good; it references the proper code file.
    Don't really know how to check that, but wouldn't either of these
    problems cause the page to work incorrectly on my desktop?
    Brad Wood, Dec 17, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.