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...Skins, Themes, ...Skins, Themes, ....ascx Error: The ID .ascx Error: The ID 'ContentPane' is already used by another control.
Previous
 
Next
New Post
10/31/2007 10:08 AM
 

Hello There,

I am in trouble with my first Skin that I did for test. When I use only one 'ContentPane' it all works fine. With more than one "ContentPanel' I get this error message "...ascx Error: The ID 'ContentPane' is already used by another control.". I used Visual Studio for creating an htm page, the code is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" style="width: 800px; height: 600px">
        <tr>
            <td style="height: 100px; background-color: gold; text-align: center" class="TopPane" id="TopPane" runat="server">
                [CONTENTPANEL]</td>
        </tr>
        <tr>
            <td style="height: 200px; background-color: moccasin; text-align: center" class="MiddlePane" id="MiddlePane" runat="server">
                [CONTENTPANEL:1]</td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
    </table>

</body>
</html>

What's wrong?

Thanks in advance,

Kau.

 
New Post
10/31/2007 4:06 PM
 

The source is way off, I suggest that you open up and look at the Dnn Blue skin to see how to code your skin.

Also read the Dnn Skinning Documentation.

Enjoy
Ray

 

 
New Post
11/7/2007 12:00 PM
 

Change your source to this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" style="width: 800px; height: 600px">
        <tr>
            <td style="height: 100px; background-color: gold; text-align: center" class="TopPane" id="TopPane" runat="server"></td>
        </tr>
        <tr>
            <td style="height: 200px; background-color: moccasin; text-align: center" class="MiddlePane" id="ContentPane" runat="server"></td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
    </table>

</body>
</html>

 

Also, I agree with InsiteFX (Ray), open the default skin and read the DotNetNuke Skinning Guide to see how they did it.

Hope this helps!


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
New Post
11/7/2007 3:19 PM
 

You are mixing ASCX and HTML skinning in one skin...

That's the problem

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ....ascx Error: The ID .ascx Error: The ID 'ContentPane' is already used by another control.


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