Page_Load event not firing and I do have autoeventwireup set to true

Hello,
I have a user control with autoeventwireup="true", but for some reason my Page_Load event is not firing.   I am using Visual Studio 2005.  This is what my Page_Load event looks like:  


    protected void Page_Load(object sender, EventArgs e)
    {
         theUserPrincipal = CredentialFactory.GetUserProfile();
        Session["userPrincipal"] = theUserPrincipal;
    }

I have a deadline today and any assistance would be greatly appreciated.

Ann

annpearsonAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
annpearsonConnect With a Mentor Author Commented:
I ended up deleting all my cache and closing and opening visual studio and it started working.  Your solution probably would have worked too.  Thanks!
0
 
ororioleConnect With a Mentor Commented:
Just to make sure it is wired up, go to the user control.ascx page and view it in design mode. Double click on the page somewhere outside of any controls. Now run it again and see if that doesnt fix it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.