dutchrebel
New Member
I have been having problems with my Page_Load events firing twice. It has happens on several pages that I'm currently developing. Here is a short example:<BR><BR>test.aspx:<BR><%@ src=http://aspmessageboard.com/archive/index.php/"test.aspx.vb" Inherits="test"%><BR><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><BR><html><BR> <head><BR> <title>test</title><BR> </head><BR> <body><BR> </body><BR></html><BR><BR>test.aspx.vb:<BR>Public Class test<BR> Inherits System.Web.UI.Page<BR><BR> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<BR> Response.Write("here")<BR> End Sub<BR>End Class<BR><BR>output of test.aspx:<BR>here<BR>here<BR><BR>Does anyone know what I'm doing wrong or how to fix this problem.<BR>Thanks!If you have autoeventwireup set to true ( it is by default ) then you dont need to put Handles MyBase.LoadThat was it! Thanks for your help foobar.