Hi,
I am having an issue with a module I developed. Anything that is an asp.net Control wont render on the page and is causing errors when I either assign it to a handler, such as a button click event, or if I try to assign a value to it. Such as
hidUserID.Value = userID.ToString();
or
this.btnNewCategory.Click += new System.EventHandler(this.btnNewCategory_Click);
If I comment out these things, the module will load correctly, including grabbing information from my database tables.
The error that shows up is the following:
DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.QuestList.View.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Does anyone know what might be going on? This is a WAP Module developed with C#.NET. My thinking was that it has something to do with the designer.cs file causing some issues.
Thanks,
Chris