Load event firing twice

Last post 09-09-2005 11:10 PM by jeffwids. 1 replies.

Sort Posts:

  • Load event firing twice

    09-09-2005, 11:17 AM
    • Member
      50 point Member
    • DarthZar
    • Member since 06-03-2005, 5:36 PM
    • Philly
    • Posts 10
    Has anyone expirienced an issue where the Load event of the Master page fires twice while stepping thru the VS debugger?  I need to do more research to see if it happens at runtime without debugging and such, but I was curious if this was a widespread issue or just me. Smile [:)]
    Scott LaFave, MCSD • Head Developer
    TREND
    660 American Avenue, Suite 203
    King of Prussia, PA 19406

    Tel: 1-610-783-4650 • Fax: 1-610-783-4695
    Help Desk: 1-877-330-9900
    E-mail: slafave@trendmls.com
    Web: www.trendmls.com
  • Re: Load event firing twice

    09-09-2005, 11:10 PM
    Answer
    • Member
      512 point Member
    • jeffwids
    • Member since 06-11-2002, 7:08 AM
    • New Jersey
    • Posts 57
    • ASPInsiders
    2 things to look for:
     
    1) If you are using vb then check to see if the autoeventwireup attribute of the masterpage directive is set to false.  If it is set to true then you do not need to include the handles clause.
     
    2) Are you using nested master pages and is your nested master page and the parent master page inheriting from a common base object?  If this is the case then the base master page object onload event will fire twice.
     
     
Page 1 of 1 (2 items)