Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# Use HttpClient to GET JSON from API endpoint
- C# JWT Token Get Expiry Timestamp
- .NET API CORS: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header.NET API
- Serialization and deserialization of 'System.IntPtr' instances are not supported. Path: $.TargetSite.MethodHandle.Value
- C# get results from Task.WhenAll
- C# Authorization in .NET Core API's using Attributes, TypeFilterAttribute and IAuthorizationFilter
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 and .net, 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
Posted in c#, General .NET, Sitecore 6
Tagged language, Multisite, Sitecore and .net, Usercontrol
2 Comments
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 and .net, Sitecore Foundry, sublayout, Usercontrol
5 Comments