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, ...Skin Codebehind FileSkin Codebehind File
Previous
 
Next
New Post
1/4/2009 6:49 AM
 

After a fresh installation, I was looking into the skin files that are shipped and that I had been developing till today.

<%@ Control Language="vb" Codebehind="~/admin/Skins/skin.vb" AutoEventWireup="false"
    Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>

I can't find the skin.vb file under admin/skins folder at all. Where is it located if at all? Does DNN allow to build a skin with code behind files, and if so, how it woud be deployed. At the last, I read that, "the Skin class iterates through all of the modules that are associated with the portal page.". Is that what this skin.vb file does all for us, and if I write a codebehind I will have to do that myself? I just want to place some UI controls in the skin ascx file and code for them right there, such that they are loaded as the page starts loading and are accessible to end user from that point, rather than placing them in a seperate module. Does that make sence?

 
New Post
1/5/2009 7:06 AM
 

Hi

you can either use skinobjects or inline code

<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
   Dim skinDocType as Control = Me.Page.FindControl("skinDocType")
   If Not skinDocType is Nothing
      CType(skinDocType, System.Web.UI.WebControls.Literal).Text="<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">"
   End If
End Sub
</script>

 

 
New Post
1/5/2009 8:19 AM
 

armand datema wrote
 

Hi

you can either use skinobjects or inline code

 

This solution is faster than codebehind?

 
New Post
1/5/2009 8:30 AM
 

yes, inline code as :

<script runat="server">

 

</script>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin Codebehind FileSkin Codebehind File


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