Page_Load

A

Alberto

The event page_load in an aspx page is fired twice. Does anybody know a
reason?

Thank you.
 
M

Michael Ramey

Most likely because you have AutoEventWireup="true", set it to false
<%@ ... AutoEventWireup="false" ...>
 
A

Alberto

I found the source of the error: I had on the onInit event the call
InitializeComponet() twice.

Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top