Commits

Anton Afanasyev committed 26f5af3

Backed out changeset: decb5152a111
That didn't quite work, as those controls are all abstracts...

  • Participants
  • Parent commits d85d346
  • Branches full-example

Comments (0)

Files changed (5)

File CS/Edit.ascx

-<%@ Control Language="C#" AutoEventWireup="false"  CodeBehind="Edit.ascx.cs" Inherits="Silvedia.Modules.News.Edit" %>
-<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.UserControls" Assembly="DotNetNuke" %>
+<%@ 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" %>
 <table width="650" cellspacing="0" cellpadding="0" border="0" summary="Edit Table">
     <tr valign="top">
-        <td class="SubHead" width="125"><dnn:LabelControl id="lblContent" runat="server" controlname="lblContent" suffix=":"></dnn:LabelControl></td>
+        <td class="SubHead" width="125"><dnn:Label id="lblContent" runat="server" controlname="lblContent" suffix=":"></dnn:Label></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:ModuleAuditControl id="ctlAudit" runat="server" />
+<dnn:Audit id="ctlAudit" runat="server" />

File 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 Silvedia.Modules.News
+namespace $NameSpace$$safeprojectname$
 {
     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;
     }
 }

File CS/Settings.ascx

-<%@ 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">
+<%@ 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">
     <tr>
-        <td class="SubHead" width="150"><dnn:LabelControl id="lblTemplate" runat="server" controlname="txtTemplate" suffix=":"></dnn:LabelControl></td>
+        <td class="SubHead" width="150"><dnn:label id="lblTemplate" runat="server" controlname="txtTemplate" suffix=":"></dnn:label></td>
         <td valign="bottom" >
             <asp:textbox id="txtTemplate" cssclass="NormalTextBox" width="390" columns="30" textmode="MultiLine" rows="10" maxlength="2000" runat="server" />
         </td>

File 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 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>
+namespace $NameSpace$$safeprojectname$
+{
+    public partial class Settings
+    {
         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;
     }
-}
+}

File 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 Silvedia.Modules.News
+namespace $NameSpace$$safeprojectname$
 {
     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;
     }
 }