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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Accordion UserControl MouseOverAccordion UserControl MouseOver
Previous
 
Next
New Post
12/10/2007 7:54 AM
 

Hello all,

I have created a web user control that contains an AJAX Accordion. I have a CSS link that controls the look and feel. One part of the CSS is a hover for the accordion. It slightly changes the border of each header.

Everything works perfect when testing the control in VS 2005.

I successfully created a Module in DNN with my usercontrol and everything works perfect with the CSS except for the mouseover (hover).

Any ideas on why everything works except for the hover? It works in VS 2005, but not in DNN.

Thanks,

RaynMan

 

 
New Post
12/10/2007 11:25 AM
 

One of the things that trips a lot of people up when using the AJAX Control Toolkit with DNN is that it requires an XHTML doctype, and DNN provides an HTML doctype by default.  The easiest way to check is to view the source of your webpage.  At the very top, there will be a doctype statement.  It should say somthing about eithet HTML or XHTML. 

To set the doctype for your skin, you will need to create a file with the same name as your skin plus .doctype.xml (if your skin is subpage.ascx subpage.doctype.xml).  In this file, include the following <SkinDocType><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]></SkinDocType>.

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
12/11/2007 10:14 AM
 

Thank you very much for your reply Brian,

This definitely tripped me up.

What you said about changing the doctype makes sense, but I'm not sure where to change this. My user control uses /Portals/default/skins/DNN-Blue/skin.css. I'm not actually using a skin file.

 

Thanks again for your response,

RaynMan

 


 
New Post
12/17/2007 5:51 PM
 

Sorry for my late response, I haven't been receiving notification emails from the forums.

You have to be using a skin if you are using DNN.  Judging by the path you gave to the skin.css, you are using the default DNN-Blue skin.  If you go into your site settings under the Admin menu, you can check what skin is assigned to your portal.  Once you know that, you can change it to be XHTML compliant by adding the file I mentioned above.  If you are using, for example, Horizontal Menu - Fixed Width.ascx, create a file called Horizontal Menu - Fixed Width.doctype.xml, and paste in the string I had above.

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
12/26/2007 3:28 PM
 

AWESOME!!!!!

Works perfect!

Thank you very much Brian :)

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Accordion UserControl MouseOverAccordion UserControl MouseOver


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