Apr 23, 2014

DotNetNuke - Skins - How to reuse parts of page - using custom control inside skin custom control

Inside your Skins package folder you have number of different skins:

root\_default\Skins\NewSkin\HomeSkin.ascx
root\_default\Skins\NewSkin\ProductsSkin.ascx

You want to reuse repeated functionality, no matter static HTML or server side oriented with DNN expressions.

Create blank ASCX and place your func. in it. You don't need .vb or .cs code file.

Key point is that your header should have attributes like this:

<%@ Control Language="vb" AutoEventWireup="true" %>

No comments:

Post a Comment