Commits

Anton Afanasyev committed decb515

Fixed View, Edit, Settings controls to reference DNN controls by assembly,
rather than by source path
Fixed corresponding designer files (VS wasn't recognizing them for some reason
- likely because of the removed comments & etc

  • Participants
  • Parent commits 5597155
  • Branches full-example

Comments (0)

Files changed (5)

-<%@ Control Language="C#" AutoEventWireup="false"  CodeBehind="Edit.ascx.cs" Inherits="$NameSpace$$safeprojectname$.Edit" %>
-<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
-<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
-<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
+<%@ Control Language="C#" AutoEventWireup="false"  CodeBehind="Edit.ascx.cs" Inherits="Silvedia.Modules.News.Edit" %>
+<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.UserControls" Assembly="DotNetNuke" %>
 <table width="650" cellspacing="0" cellpadding="0" border="0" summary="Edit Table">
     <tr valign="top">
-        <td class="SubHead" width="125"><dnn:Label id="lblContent" runat="server" controlname="lblContent" suffix=":"></dnn:Label></td>
+        <td class="SubHead" width="125"><dnn:LabelControl id="lblContent" runat="server" controlname="lblContent" suffix=":"></dnn:LabelControl></td>
         <td>
-            <dnn:texteditor id="txtContent" runat="server" height="200" width="500" />
+            <dnn:TextEditor id="txtContent" runat="server" height="200" width="500" />
             <asp:RequiredFieldValidator ID="valContent" resourcekey="valContent.ErrorMessage" ControlToValidate="txtContent"
                 CssClass="NormalRed" Display="Dynamic" ErrorMessage="<br>Content is required" Runat="server" />
         </td>
     <asp:linkbutton cssclass="CommandButton" id="cmdCancel" resourcekey="cmdCancel" runat="server" borderstyle="none" text="Cancel" causesvalidation="False" OnClick="cmdCancel_Click"></asp:linkbutton>&nbsp;
     <asp:linkbutton cssclass="CommandButton" id="cmdDelete" resourcekey="cmdDelete" runat="server" borderstyle="none" text="Delete" causesvalidation="False" OnClick="cmdDelete_Click"></asp:linkbutton>&nbsp;
 </p>
-<dnn:Audit id="ctlAudit" runat="server" />
+<dnn:ModuleAuditControl id="ctlAudit" runat="server" />

CS/Edit.ascx.designer.cs

 //------------------------------------------------------------------------------
 // <auto-generated>
 //     This code was generated by a tool.
-//     Runtime Version:2.0.50727.42
 //
 //     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
+//     the code is regenerated. 
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-namespace $NameSpace$$safeprojectname$
+namespace Silvedia.Modules.News
 {
     public partial class Edit
     {
+
+        /// <summary>
+        /// lblContent control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::DotNetNuke.UI.UserControls.LabelControl lblContent;
+
+        /// <summary>
+        /// txtContent control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::DotNetNuke.UI.UserControls.TextEditor txtContent;
+
+        /// <summary>
+        /// valContent control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::System.Web.UI.WebControls.RequiredFieldValidator valContent;
+
+        /// <summary>
+        /// cmdUpdate control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::System.Web.UI.WebControls.LinkButton cmdUpdate;
+
+        /// <summary>
+        /// cmdCancel control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::System.Web.UI.WebControls.LinkButton cmdCancel;
+
+        /// <summary>
+        /// cmdDelete control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::System.Web.UI.WebControls.LinkButton cmdDelete;
+
+        /// <summary>
+        /// ctlAudit control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::DotNetNuke.UI.UserControls.ModuleAuditControl ctlAudit;
     }
 }
-<%@ Control Language="C#" AutoEventWireup="false" Inherits="$NameSpace$$safeprojectname$.Settings" CodeBehind="Settings.ascx.cs" %>
-<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
-<table cellspacing="0" cellpadding="2" border="0" summary="$safeprojectname$ Settings Design Table">
+<%@ Control Language="C#" AutoEventWireup="false" Inherits="Silvedia.Modules.News.Settings" CodeBehind="Settings.ascx.cs" %>
+<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.UserControls" Assembly="DotNetNuke" %>
+<table cellspacing="0" cellpadding="2" border="0" summary="News Settings Design Table">
     <tr>
-        <td class="SubHead" width="150"><dnn:label id="lblTemplate" runat="server" controlname="txtTemplate" suffix=":"></dnn:label></td>
+        <td class="SubHead" width="150"><dnn:LabelControl id="lblTemplate" runat="server" controlname="txtTemplate" suffix=":"></dnn:LabelControl></td>
         <td valign="bottom" >
             <asp:textbox id="txtTemplate" cssclass="NormalTextBox" width="390" columns="30" textmode="MultiLine" rows="10" maxlength="2000" runat="server" />
         </td>

CS/Settings.ascx.designer.cs

 //------------------------------------------------------------------------------
 // <auto-generated>
 //     This code was generated by a tool.
-//     Runtime Version:2.0.50727.832
 //
 //     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
+//     the code is regenerated. 
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-namespace $NameSpace$$safeprojectname$
-{
-    public partial class Settings
-    {
+namespace Silvedia.Modules.News {
+    
+    
+    public partial class Settings {
+        
+        /// <summary>
+        /// lblTemplate control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::DotNetNuke.UI.UserControls.LabelControl lblTemplate;
+        
+        /// <summary>
+        /// txtTemplate control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::System.Web.UI.WebControls.TextBox txtTemplate;
     }
-}
+}

CS/View.ascx.designer.cs

 //------------------------------------------------------------------------------
 // <auto-generated>
 //     This code was generated by a tool.
-//     Runtime Version:2.0.50727.42
 //
 //     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
+//     the code is regenerated. 
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-namespace $NameSpace$$safeprojectname$
+namespace Silvedia.Modules.News
 {
     public partial class View
     {
+
+        /// <summary>
+        /// lstContent control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
         protected global::System.Web.UI.WebControls.DataList lstContent;
     }
 }