This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Sitecore.Shell.Applications.ContentEditor.Gutters; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.Data.Fields; | |
using Sitecore.Rules; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports System | |
Imports EnvDTE | |
Imports EnvDTE80 | |
Imports EnvDTE90 | |
Imports EnvDTE90a | |
Imports EnvDTE100 | |
Imports System.Diagnostics | |
Imports System.Net | |
Imports System.Text | |
Imports System.IO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:PlaceHolder runat="server" Visible="<%# SomeProperty != null %>"> | |
<p>Normal placeholder - <%# SomeProperty.Name %></p> | |
</asp:PlaceHolder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:PlaceHolder runat="server" Visible="<%# SomeProperty != null %>"> | |
<p>Normal placeholder - <%# SomeProperty != null ? SomeProperty.Name : null %></p> | |
</asp:PlaceHolder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:Repeater runat="server" DataSource="<%# SomeProperty != null ? new int[] { 0 } : null %>"> | |
<ItemTemplate> | |
<p>Simple workaround using repeater - <%# SomeProperty.Name %></p> | |
</ItemTemplate> | |
</asp:Repeater> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.UI.WebControls; | |
namespace Website.Controls | |
{ | |
public class DataPlaceHolder : PlaceHolder | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cl:DataPlaceHolder runat="server" Visible="<%# SomeProperty != null %>"> | |
<p>Custom control that disables databinding children if invisible - <%# SomeProperty.Name %></p> | |
</cl:DataPlaceHolder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sc:FieldRenderer runat="server" Item="<%# SomeItem %>" FieldName="Some field" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%# SomeItemWrapper.SomeField %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sc:FieldRenderer runat="server" Item="<%# SomeItemWrapper.Item %>" FieldName="<%# SomeType.FIELD_SOME_FIELD %>" /> |