Solved

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

Posted on 2008-06-16
2
637 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
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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