ASP .Net 2.0 web application, one simple Default.aspx page with one image button in it:
Strange thing happens; in Global.asax, the Application_AuthenticateRequest fires twice when the page loads: first time with Default.aspx in HttpContext.Current.Request.Url property and the second time with myImage.gif in it (I assume, since the ImageButton is a server control ?). As long as I remember, in ASP .Net 1.1 it fired once per page requested no matter what type of controls the requested page contained. Is it new in 2.0 ?
Code:
<asp:ImageButton ID="imb" runat="server" ImageUrl="~/images/myImage.gif" />
Strange thing happens; in Global.asax, the Application_AuthenticateRequest fires twice when the page loads: first time with Default.aspx in HttpContext.Current.Request.Url property and the second time with myImage.gif in it (I assume, since the ImageButton is a server control ?). As long as I remember, in ASP .Net 1.1 it fired once per page requested no matter what type of controls the requested page contained. Is it new in 2.0 ?