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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...New skin object errorNew skin object error
Previous
 
Next
New Post
8/19/2011 11:46 AM
 
I created a new skin object, Current Time Skin Object, in VS2008 for DNN6 following the procedures outlined in the Wrox Professional DotNetNuke Module Programming book.

But, when I try to put it in my skin, I get the error: 'dnn' is not a valid value for attribute 'tagprefix'.

I think I did everything correctly but I can't understand why that error is showing, there are other lines in the file where TagPrefix="dnn".
 
New Post
8/22/2011 10:52 AM
 
bumping to see if anyone knows the answer.
 
New Post
8/29/2011 10:30 AM
 
One more bump because I'm frustrated with lack of help on this.
 
New Post
8/29/2011 11:58 AM
 
Could you post some code? That might help.



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
8/30/2011 10:20 AM
 
ViewCurrentTimeSkinObject.ascx.cs:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Web.UI;
using System.Web.UI.WebControls;
using DotNetNuke.UI.Skins;
using DotNetNuke.Services.Localization;

namespace SCIC.Modules.CurrentTimeSkinObject
{
    public partial class ViewCurrentTimeSkinObject : SkinObjectBase
    {
        #region Private members
            private bool _dateOnly = false;
            private const string _myFileName = "ViewCurrentTimeSkinObject.ascx";
        #endregion

        #region Public properties
            public bool DateOnly
            {
                get { return _dateOnly; }
                set { _dateOnly = value; }
            }
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            // Get template
            string templateText = Localization.GetString("DisplayTemplate", Localization.GetResourceFile(this, _myFileName));

            // Load Proper format
            if (_dateOnly)
                templateText = templateText.Replace("[TODAY]", System.DateTime.Now.ToShortDateString());
            else
                templateText = templateText.Replace("[TODAY]", System.DateTime.Now.ToString());

            // Load to User
            litContent.Text = templateText;
        }
    }
}

ViewCurrentTimeSkinObject.ascx.designer.cs:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.4961
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace SCIC.Modules.CurrentTimeSkinObject {
    
    
    public partial class ViewCurrentTimeSkinObject {
        
        /// <summary>
        /// litContent 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.Literal litContent;
    }
}
CurrentTimeSkinObject.dnn
<dotnetnuke version="3.0" type="Module">
  <folders>
    <folder>
      <name>SCIC.CurrentTimeSkinObject</name>
      <friendlyname>CurrentTimeSkinObject</friendlyname>
      <foldername>CurrentTimeSkinObject</foldername>
      <modulename>SCIC.CurrentTimeSkinObject</modulename>
      <description>A CurrentTimeSkinObject module</description>
      <version>01.00.00</version>
      <businesscontrollerclass>SCIC.CurrentTimeSkinObject.Components.CurrentTimeSkinObjectController</businesscontrollerclass>
      <modules>
        <module>
          <friendlyname>CurrentTimeSkinObject</friendlyname>
          <cachetime>0</cachetime>
          <controls>
            <control>
              <src>/nadnn/CurrrentTimeSkinObject/CurrentTimeSkinObject/App_LocalResources/ViewCurrentTimeSkinObject.ascx</src>
              <type>View</type>
              <helpurl></helpurl>
            </control>
          </controls>
        </module>
      </modules>
      <files>
        <file>
         <name>CurrentTimeSkinObject.dll</name>
    </file>
        <file>
          <name>ViewCurrentTimeSkinObject.ascx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>ViewCurrentTimeSkinObject.ascx.resx</name>
        </file>
      </files>
    </folder>
  </folders>
</dotnetnuke>

Need anything else?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...New skin object errorNew skin object error


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