Solved

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

Posted on 2008-06-16
2
652 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Assisted Solution

by:ororiole
ororiole earned 250 total points
ID: 21798317
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
ID: 21798993
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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

691 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