Correct Page_Load from loading twiceCheck to make sure that the .aspx page and .cs page are not both wiring up Page_Load.
.aspx page:
<%@ Page Language="C#" AutoEventWireup="false"....aspx.cs code behind:
private void InitializeComponent()
{this.Load += new System.EventHandler(this.Page_Load);
}
If AutoEventWireup="true" and this.Load wires up the Page_Load method, either remove the manual wireup or set AutoEventWireup="false".
No comments:
Post a Comment