I made two files i.testing1.ascx and ii. testing1.ascx.cs
I added those above files in folder of desktopmodules. and create a a module.name of the module is test_Redirect.
But while adding the module in pages it showing the bellow error.
"
Error: test_Redirect is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() "
How can I solve this..?
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DotNetNuke;
using DotNetNuke.Common;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.UI.Modules;
public partial class testing1 : System.Web.UI.UserControl
{
protected void Button1_Click(object sender, EventArgs e)
{
Globals.NavigateURL(109, "", "TextBox2.Text");
}
}