page load multiple times solved


J

jbot

Here is one more scenario where the page load event can fire more than
once:

I had problem with pageload firing twice for an ascx control. This
was on a project that was upgraded from asp.net 1.1 to 2.0. I finally
figured out that for some reason, the pageload event for that ascx had
the following signature:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load, Me.Load

By removing the , Me.Load the problem was resolved.

It took a long time to find this, so I hope this helps someone out
there
JB
 
Ad

Advertisements

R

RayLopez99

So presumeably "MyBase.Load, Me.Load" is redundant? Seems simple
enough, if so.

RL
 

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

Top