Hi Trevor,
Sure I can, here they are...
.ascx file
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CMSWebParts_LuckyDay_ElkeDagGeluk.ascx.cs" Inherits="CMS.CMSWebParts.CMSWebParts_LuckyDay_ElkeDagGeluk" %>
<div class="usp usp--sec usp--with-visual visual--left" data-scroll-target="true" data-scroll-offset="450">
<div class="usp__content ml-negative pt-0 pb-0">
<div class="usp__content__inner">
<h2 class="usp__title usp__title--large mb">
<asp:Literal runat="server" ID="SectionTitle"/>
</h2>
<div class="cta">
<a href="#" class="btn btn--large btn--pri"><span>Primaire button</span></a>
</div>
<div class="usp__visual is-mobile">
<div class="image" style="background-image: url();"></div>
</div>
</div>
</div>
</div>
.ascx.cs file
using System;
using System.Data;
using System.Collections;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//using System.Web.UI.HtmlControls;
//using CMS.UIControls;
using CMS.PortalControls;
using CMS.helpers;
public partial class CMSWebParts_LuckyDay_ElkeDagGeluk : CMSAbstractWebPart
{
public override void OnContentLoaded()
{
base.OnContentLoaded();
SetupControl();
}
protected void SetupControl()
{
if(this.StopProcessing)
{
// Do not process
}
else
{
}
}
public override void ReloadData()
{
base.ReloadData();
SetupControl();
}
public string ElementTitle {
get {
var elementValue = this.GetValue("Title");
if(elementValue != null) {
return elementValue.ToString();
} else {
return null;
}
}
}
protected void Page_PreRender(object sender, EventArgs e)
{
SectionTitle.Text = ElementTitle;
}
}