Asp Net Page Load Twice


Does your asp net page load twice? Set the AutoEventWireup to false in the Page directive as follows:

<%@ Page Language="C#" AutoEventWireup="false"CodeBehind="MyAspPage.aspx.cs"

Don’t just omit the AutoEventWireup attribute. That didn’t work for me. I had to explicitly set it to false.

Another common cause is image elements source set to blank:

<img src="">

Make sure you fix all those because they can trigger the asp net page load twice.

No comments:

Post a Comment