DNN: Cannot hit Page_Load event of Control

If you are developing a DotNetNuke module and are in the middle of coding and testing that module within a DNN installation and have noticed that you cannot get Visual Studio to enter the Page_Load event of your User Controls and its driving you insane!

Here is the simple solution, make sure your module definition has the Cache Time set to 0. I have found that this is most likely the reason you never see the Page_Load or any other initialization methods hit when debugging your module.

0

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s