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>
</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>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Go"
Visible="False" />
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
<h3>
Distributor Administration</h3>
</td>
<td>
</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>
<asp:Button ID="Button2" runat="server" onclick="Button1_Click" Text="Go"
Visible="False" />
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
<h3>
Retailer Administration</h3>
</td>
<td>
</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>
<asp:Button ID="Button3" runat="server" onclick="Button1_Click" Text="Go"
Visible="False" />
</td>
<td>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</
</
body>html>
</
<
</
<
<