Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  skinning - .ascx or htm ?
Previous Previous
 
Next Next
New Post 3/19/2008 11:20 AM
User is offline xyzt
11 posts
10th Ranked


skinning - .ascx or htm ? 

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 12:14 PM
User is offline Chris Hammond
2971 posts
www.engagesoftware.com
5th Ranked








Re: skinning - .ascx or htm ? 

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
Engage Software
St. Louis, MO
314.966.4000


The leading provider of DotNetNuke skinning, training and custom module development.
Official DotNetNuke® Training Provider
 
New Post 3/19/2008 12:27 PM
User is offline Cuong Dang
285 posts
engagesoftware.com
9th Ranked


Re: skinning - .ascx or htm ? 
Modified By Cuong Dang  on 3/19/2008 2:31:07 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
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom module development.
 
New Post 3/19/2008 1:53 PM
User is offline Jan Olsmar
413 posts
www.olsmar.com/
8th Ranked




Re: skinning - .ascx or htm ? 

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 4:11 PM
User is offline Sebastian Leupold
15227 posts
www.deutschnetnuke.de
1st Ranked












Re: skinning - .ascx or htm ? 

I definately agree with Jan's point of view.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  skinning - .ascx or htm ?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de
The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP