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, ...skinning - .ascx or htm ?skinning - .ascx or htm ?
Previous
 
Next
New Post
3/19/2008 1:20 PM
 

hello,

as i read in a book, it says that ascx is generated after the parsing process of .htm file. but some tutorials develop the skin using the .ascx file. if the .ascx is generated automatically, why do people develop skins using the .ascx ? what is the right way?

thanks.

 
New Post
3/19/2008 2:14 PM
 

Some people find it (I am one of these people) easier to just work with the ASCX file directly as I am a developer and work with .Net controls on a daily basis, so working with an ASCX skin is very similar to working with regular user controls.

You can also edit the ASCX directly in you portals/#/skins/skinname/ folder and it will change immediately, if you edited the HTML file in that folder you would then have to reparse the skin in order to see the changes made.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/19/2008 2:27 PM
 

I agreed with Chris that developers prefer to develop skins using ASCX approach.

Beside it's easy for them to make changes without having to reparse the HTML, it also allow them to take full control in skin objects customization without creating the skin.xml file. When installing skins, dnn essentially marges the skin.html and skin.xml to produce the skin.ascx with specific ASP.NET user controls and skin object attributes.

In brief:

Building HTML skin, common files that need to create:

  1. skin.html
  2. skin.doctype.xml (if using XHMTL/CSS)
  3. skin.css
  4. skin.xml

Building ASCX skin, common files that need to create:

  1. skin.ascx
  2. skin.xml (if using XHMTL/CSS)
  3. skin.css

Both approach is the right way to do, however, when develop commerical skins, it is better to take the HTML approach because it reaches the broader target audiences.

Hope this helps!


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

 
New Post
3/19/2008 3:53 PM
 

If you do it for your own site you can use what is best for you.

However if you do it for a customer the html should bee the first choice.

Then he can use the skin even if there will be changes in the skinobjects.

Just upload the skin again. Also its easier to change in common editors.

Jan

 

 

 
New Post
3/19/2008 6:11 PM
 

I definately agree with Jan's point of view.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...skinning - .ascx or htm ?skinning - .ascx or htm ?


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