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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ASP.Net to DNN Module QuestionASP.Net to DNN Module Question
Previous
 
Next
New Post
1/30/2009 11:18 AM
 

Hello Everyone,

I am trying to convert an ASP.Net (3.5) website with a lot of DB back end to a DNN site.

This may be a newbee question, but:

I dont know how or where to put my page/form code to make it work the same in DNN.

I am under the impression that I need to convert my page into a module an insert the module into the DNN page.

This module make the old page show up, but it does not work correctly.  The first Issue I get is a "Module Load Warning
One or more of the modules on this page did not load. This may be temporary. Please refresh the page (click F5 in most browsers). If the problem persists, please let the Site Administrator know."  The message goes away when I refresh but the page does not work.  When I change a DropDown Item.  A submit button is supposed to appear next to the dropdownlist that was changed.

I'm using an updatePanel with contenttemplates.  Could this be the issue?

 

Any Ideas??

I am placing the page code below:

 

 

<%@ Control language="vb" Inherits="YourCompany.Modules.Admin_Landing.ViewAdmin_Landing" CodeFile="ViewAdmin_Landing.ascx.vb" AutoEventWireup="false" Explicit="True" %>

<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>

<

asp:datalist id="lstContent" datakeyfield="ItemID" runat="server" cellpadding="4">

<itemtemplate>

<table cellpadding="4" width="100%">

<tr>

<td valign="top" width="100%" align="left">

<asp:HyperLink ID="HyperLink1" NavigateUrl='<%# EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>' Visible="<%# IsEditable %>" runat="server"><asp:Image ID="Image1" Runat=server ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible="<%#IsEditable%>" resourcekey="Edit"/></asp:hyperlink>

<asp:Label ID="lblContent" runat="server" CssClass="Normal"/>

</td>

</tr>

</table>

</itemtemplate>asp:datalist>html xmlns="http://www.w3.org/1999/xhtml">head id="Head1" runat="server">

<title>Administration Home Page</title>

<style type="text/css">

.style1

{

text-align: center;

}

</style>head>body>

<div id="DivID" style="text-align: center">

<script type="text/javascript" src="../App_Javascript/createElementExplicit.js"></script>

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

</div>

<h1 class="style1">

Administration Home Page</h1>

 

<div>

</div>

<asp:UpdatePanel UpdateMode="Conditional" ID="UpdatePanel1" runat="server">

<ContentTemplate>

 

<br />

<table align="center" width="650 px">

<tr>

<td>

<h3 style="height: 24px">

Company Administration</h3>

</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td>

<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">

<asp:ListItem Selected="True" Value="NULL">Please Select A Company

Administration Item</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Account_Managers.aspx">Add

or Edit Account Managers</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Calendar.aspx">Modify Company Sales Calendar</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Package_Types.aspx">Add or Edit Package Types</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Product.aspx">Add or Edit Products</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Product_Code.aspx">Add or Edit Product Codes</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Product_Group.aspx">Add or Edit Product Groups</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Product_VAS.aspx">Add or Edit Product VAS</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Promotion_Status.aspx">Add or Edit Promotion Status</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Promotion_Type.aspx">Add or Edit Promotion Types</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Rebate_Status.aspx">Add or Edit Rebate Status</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Rebate_Type.aspx">Add or Edit Rebate Types</asp:ListItem>

</asp:DropDownList>

&nbsp;&nbsp;

<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Go"

Visible="False" />

</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td>

&nbsp;</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td>

<h3>

Distributor Administration</h3>

</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td>

<asp:DropDownList ID="DropDownList2" runat="server"

onselectedindexchanged="DropDownList2_SelectedIndexChanged"

AutoPostBack="True">

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Distributor_Account_Managers.aspx">Add

or Edit Distributor Account Managers</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Distributors.aspx">Add

or Edit Distributors</asp:ListItem>

<asp:ListItem Selected="True" Value="NULL">Please Select A Distributor

Administration Item</asp:ListItem>

</asp:DropDownList>

&nbsp;&nbsp;

<asp:Button ID="Button2" runat="server" onclick="Button1_Click" Text="Go"

Visible="False" />

</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td>

&nbsp;</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td>

<h3>

Retailer Administration</h3>

</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td>

<asp:DropDownList ID="DropDownList3" runat="server"

onselectedindexchanged="DropDownList3_SelectedIndexChanged"

AutoPostBack="True">

<asp:ListItem Selected="True" Value="NULL">Please Select A Retailer

Administration Item</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Retailer.aspx">Add

or Edit Retailers</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Product_Retailer.aspx">Assign Products to Retailer </asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Retailer_Retail_Sales_Channel.aspx">Add

or Edit Retailers Sales Channel</asp:ListItem>

<asp:ListItem Value="../SecureArea/Administration_Pages/Administration_Retailer_Retailer_Inventory_Sales_Method.aspx">Add

or Edit Retailer Inventory Sales Method</asp:ListItem>

</asp:DropDownList>

&nbsp;&nbsp;

<asp:Button ID="Button3" runat="server" onclick="Button1_Click" Text="Go"

Visible="False" />

</td>

<td>

&nbsp;</td>

</tr>

</table>

</ContentTemplate>

</asp:UpdatePanel>

 

</

</

body>html>

 

</

<

</

<

<

 
New Post
1/30/2009 12:59 PM
 

I have a little more information.

When Logged in as Host, I see this error at the bottom of the page:

Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.Web.HttpException: You can only have one control on a page. at System.Web.UI.HtmlControls.HtmlHead.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ASP.Net to DNN Module QuestionASP.Net to DNN Module Question


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