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

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,157
Latest member
MercedesE4
Top