Skip to content

Instantly share code, notes, and snippets.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CIW.ascx.cs" Inherits="SitefinityWebApp.Widgets.CI.CIW" %>
<div class="contact-widget">
<div class="widget-title">
<h3><asp:Literal ID="litCompanyName" runat="server"/></h3>
</div>
<div class="text-info">
<label><asp:Literal ID="litStreetAndNumber" runat="server"/></label><br />
<label><asp:Literal ID="litPostOffice" runat="server"/></label><br />
<label><asp:Literal ID="litPostCodeAndCity" runat="server"/></label><br />
<label><asp:Literal ID="litTelephoneNumber" runat="server"/></label><br />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sitefinity.Controls.Selectors;
using Telerik.Sitefinity.Web.UI.ControlDesign;
using SitefinityWebApp.Widgets.CI.Designer;
<%@ Control Language="C#" %>
<%@ Register Assembly="Telerik.Sitefinity" TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sitefinity" %>
<%@ Register Assembly="Telerik.Sitefinity" TagPrefix="sfFields" Namespace="Telerik.Sitefinity.Web.UI.Fields" %>
<sitefinity:ResourceLinks ID="resourcesLinks" runat="server">
<sitefinity:ResourceFile Name="Styles/Ajax.css" />
</sitefinity:ResourceLinks>
<div class="sfContentViews sfSingleContentView" style="max-height: 400px; overflow: auto;">
<ol>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Sitefinity.Web.UI.ControlDesign;
using System.Web.UI;
using Telerik.Sitefinity.Web.UI.Fields;
namespace SitefinityWebApp.Widgets.CI.Designer
{
Type.registerNamespace("SitefinityWebApp.Widgets.CI.Designer");
SitefinityWebApp.Widgets.CI.Designer.CIDesigner = function (element) {
this._companyname = null;
this._streetandnumber = null;
this._postoffice = null;
this._postcodeandcity = null;
this._telephonenumber = null;
this._faxnumber = null;
@alexszilagyi
alexszilagyi / youtube-dl.md
Created July 5, 2018 02:50
Using youtube-dl to download courses from Pluralsight

Download courses from learning sites with youtube-dl

You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl. In the example further down I'm using my Pluralsight account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool

The flags you have to supply may vary depending on which site you make a request to.

You can get a free 3 month trial to Pluralsight by signing up for free to Visual Studio Dev Essentials

Installation