Solved

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

Posted on 2008-06-16
2
608 Views
Last Modified: 2013-11-26
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

0
Comment
Question by:annpearson
2 Comments
 
LVL 16

Assisted Solution

by:ororiole
ororiole earned 250 total points
Comment Utility
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
 

Accepted Solution

by:
annpearson earned 0 total points
Comment Utility
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now