Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAJAX ModuleAJAX Module
Previous
 
Next
New Post
5/20/2011 5:37 PM
 
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!
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAJAX ModuleAJAX Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out