Page_Load event fires twice in asp.net (C#) ?

J

Jon

Hi,

I've set up a new web form (new.aspx) that inherits a BasePage class.
The new web form contains an override Page_Load event. In BasePage,
Page_Load is declared 'virtual'. In the new web form, base.Page_Load
is called from within its Page_Load method so that both Page_Load
methods are executed.

AutoEventWireup is set to False, yet the page load and all following
code on the new web form is called twice. What am I doing wrong here?

Regards
Jon
 

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,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top