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_load() is being called twice

page_load() is being called twice

Scheduled Pinned Locked Moved ASP.NET
2 Posts 2 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.
  • M Offline
    M Offline
    Masood Ahmed
    wrote on last edited by
    #1

    hello all when i call a webpage what i h notice that page_load () of that page is being called twice. i m using master page and also a basic page for common funcationality .can any one tell me the reason and suggest any solution regard masood

    M 1 Reply Last reply
    0
    • M Masood Ahmed

      hello all when i call a webpage what i h notice that page_load () of that page is being called twice. i m using master page and also a basic page for common funcationality .can any one tell me the reason and suggest any solution regard masood

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, When an event handler like the Page_Load runs twice, it makes me think that the handler is registered to the event twice. You might want to double check this thing by looking at the AutoEventWireup attribute in the Page directive, also your sample code. Since you didn't post your sample code and the ASP.NET markup, so I cannot give you more information.

      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