I've been struggling with some odd behavior with my DotNetNuke module for about a day and a half now. I've tried everything I've found on Google, but nothing has worked.
I'm using DotNetNuke 04.09.00 with Visual Studio 2008 and .NET 3.5. I'm not using JavaScript--all of my event handling is done via postback, with event handlers written in C#. I've created several DotNetNuke modules and, until yesterday, they all worked as expected and continue to work as expected. Then I added a new web user control to an existing module. I used the same patterns that I've used on the previous controls, but get very different behavior: when the page containing the the new control is viewed in Edit mode everything works as expected, but in View mode, none of the C# event handlers I've written get called, not even Page_Load. Another interesting aspect of the behavior: in View mode, the controls on the new web user control have IDs like dnn_ctr384_ViewSingleStudent_ViewSingleStudent_selectStudentLabel_label and invoke __doPostBack with a first parameter like dnn$ctr384$ViewSingleStudent$ViewSingleStudent$viewStudentButton. In Edit mode, where things behave as expected, the same controls have IDs like dnn_ctr384_ViewSingleStudent_selectStudentLabel_label and dnn$ctr384$ViewSingleStudent$viewStudentButton. Working controls have IDs like the latter: the class name of the web user control appears only once.
I've copied the code of other web user controls over the contents of the new files. No change. The new control exhibits the problem described above, even though the older controls--which have the same code (except for the class name and the Inherits and CodeBehind attributes)--still work.
I've copied the files containing working controls and re-named them (as well as the class name and the Inherits and CodeBehind attributes)--same result.
I've created new web user control classes with different names and made them as trivial as I could: an <asp:Label>, an <asp:TextBox>, and an <asp:LinkButton>--same result.
Every control that I wrote before yesterday continues to work as expected, but every control I've written since yesterday afternoon has exhibited this odd behavior. Has anyone else seen this? Can anyone offer guidance? Please help--I'm at my wits' end.
Thanks in advance,
Chris