Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# HttpClient POST or PUT Json with content type application/json
- Using C# HttpClient from Sync and Async code
- Read blob file from Microsoft Azure Storage with .NET Core
- C# Get expiry timestamp from JWT token
- ASP.Net Core API - "'s' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0."
- C# Using Newtonsoft and dynamic ExpandoObject to convert one Json to another
- Creating dynamic arrays and lists using Dynamic and ExpandoObject in C#
Archive
Meta
Tag Archives: Usercontrol
Sitecore locating sublayouts on your webpage
This is a followup from the post, Get Sitecore placeholders and rendering hierarchy from a Sitecore item, where I adress one of the difficulties when working with pages in Sitecore, that they tend to get very complex as one page may … Continue reading
Posted in .net, Sitecore 6, Sitecore 7, Sitecore 8
Tagged AppRelativeVirtualPath, Rendering, Sitecore, sublayout, Usercontrol, WebControl
5 Comments
Sitecore Language selector – creating a country selector
This is a little nifty thing I developed recently. I developed a small UserControl that displays all the flags from the languages in Sitecore, enabling me to create a list of clickable flags that will make the website switch language. … Continue reading
Get the Sitecore Sublayout from your .aspx page (Usercontrol)
How do you get the Sitecore Sublayout from a Usercontrol? A Sitecore Sublayout (Sitecore.Web.UI.WebControls.Sublayout) is a container for your Usercontrol (.ascx) page. Therefore the Sublayout is retrieved by typecasting the parent to a Sublayout: Having the Sublayout in hand enables … Continue reading
Posted in c#, General .NET, Sitecore 5, Sitecore 6
Tagged datasource, Sitecore, Sitecore Foundry, sublayout, Usercontrol
5 Comments