I'm fairly new to DNN module development, and this is my first attempt at creating a module containing AJAX code. For testing purposes, I'm trying to create a module using a simple accordion (later this will be data-driven).
Here's the code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EquityResearch.ascx.cs"
Inherits="DesktopModules_EquityResearch_EquityResearch" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:Accordion ID="Accordion1" CssClass="accordion" HeaderCssClass="accordionHeader"
HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent"
RequireOpenedPane="false" SelectedIndex="-1" runat="server">
<Panes>
<asp:AccordionPane ID="AccordionPane1" runat="server">
<Header>
Consumer Services</Header>
<Content>
Autozone, Inc.<br />
BJ's Restaurants, Inc.<br />
Bob Evans Farm, Inc.<br />
</Content>
</asp:AccordionPane>
<asp:AccordionPane ID="AccordionPane2" runat="server">
<Header>
Energy</Header>
<Content>
Allis-Chalmers Energy, Inc.<br />
Basic Energy Services, Inc.<br />
Berry Petroleum<br />
</Content>
</asp:AccordionPane>
<asp:AccordionPane ID="AccordionPane3" runat="server">
<Header>
Financial Services</Header>
<Content>
BancorpSouth, Inc.<br />
BB&T Corporation<br />
Compass Diversified Holdings<br />
</Content>
</asp:AccordionPane>
<asp:AccordionPane ID="AccordionPane4" runat="server">
<Header>
Healthcare</Header>
<Content>
Alliance Healthcare Services<br />
Allscripts Healthcare Solutions, Inc.<br />
athenahealth, Inc.<br />
</Content>
</asp:AccordionPane>
</Panes>
</asp:Accordion>
When I try to install the module, the only error I get is:
A critical error has occurred.
Object reference not set to an instance of an object.
Can anybody point me in the right direction? Thanks!