Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. 'Page Init' approached twice in the master page

'Page Init' approached twice in the master page

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shabya
    wrote on last edited by
    #1

    hello, i have a strange phenomenon which happens only at the remote site. it doesnt happen in my local machine. i noticed that the PageInit is called twice in the master page. i know that because i trapped there an Exception that writes to a file the information of the Exception. the file was written twice with the delay of approx 300 msec between them. (i use a tick counter to construct the file name) in the local machine the file is written only once. does anyone have an idea why this happens ? tnx, avi

    M L 2 Replies Last reply
    0
    • S shabya

      hello, i have a strange phenomenon which happens only at the remote site. it doesnt happen in my local machine. i noticed that the PageInit is called twice in the master page. i know that because i trapped there an Exception that writes to a file the information of the Exception. the file was written twice with the delay of approx 300 msec between them. (i use a tick counter to construct the file name) in the local machine the file is written only once. does anyone have an idea why this happens ? tnx, avi

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      shabya wrote:

      does anyone have an idea why this happens ?

      Its really difficult unless you debug :doh: Well, do you know that you can also debug a remot site from VS?

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      S 1 Reply Last reply
      0
      • S shabya

        hello, i have a strange phenomenon which happens only at the remote site. it doesnt happen in my local machine. i noticed that the PageInit is called twice in the master page. i know that because i trapped there an Exception that writes to a file the information of the Exception. the file was written twice with the delay of approx 300 msec between them. (i use a tick counter to construct the file name) in the local machine the file is written only once. does anyone have an idea why this happens ? tnx, avi

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Is the Page_Load event also called twice? If so, look into this link[^]

        S 1 Reply Last reply
        0
        • L Lost User

          Is the Page_Load event also called twice? If so, look into this link[^]

          S Offline
          S Offline
          shabya
          wrote on last edited by
          #4

          mm.. interesting. i put a trap for all the events and all of them loaded only once. (pageload, pageinit) the twice load happened only when there was an exception. the exception was called twice. is there a retry or something?

          1 Reply Last reply
          0
          • M Manas Bhardwaj

            shabya wrote:

            does anyone have an idea why this happens ?

            Its really difficult unless you debug :doh: Well, do you know that you can also debug a remot site from VS?

            Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

            S Offline
            S Offline
            shabya
            wrote on last edited by
            #5

            mm.. interesting. i put a trap for all the events and all of them loaded only once. (pageload, pageinit) the twice load happened only when there was an exception. the exception was called twice. is there a retry or something?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups