This file contains hidden or 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
| public partial class SearchResults : System.Web.UI.UserControl | |
| { | |
| protected void Page_Load(object sender, EventArgs e) | |
| { | |
| var searchQuery = Request.QueryString["s"]; // search query | |
| var searchResults = new List<SearchResult>(); | |
| if (!string.IsNullOrEmpty(searchQuery)) | |
| { | |
| // sitecore search index |
This file contains hidden or 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
| var testList = new [] {"You may concatenate a string.", "They have a cat.", "Cat is a feline.", "Her name is Catherine."}; | |
| var regex = new Regex(@"(^|\W)cat", RegexOptions.IgnoreCase | RegexOptions.Multiline); | |
| var matches = testList.Where (l => rexex.IsMatch(l)); |
This file contains hidden or 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
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainLayout.aspx.cs" Inherits="MySitecoreSite.Layouts.MainLayout" %> | |
| <%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Kernel" %> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
This file contains hidden or 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
| <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MainContent.ascx.cs" Inherits="MySitecoreSite.Sublayouts.MainContent" %> | |
| <%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Kernel" %> | |
| <div> | |
| <sc:Text Field="Content" runat="server" /> | |
| </div> |
This file contains hidden or 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
| <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DestinationContent.ascx.cs" Inherits="MySitecoreSite.Sublayouts.DestinationContent" %> | |
| <%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Kernel" %> | |
| <h2><sc:Text Field="Name" runat="server" /></h2> | |
| <div> | |
| <sc:Text Field="Description" runat="server" /> | |
| </div> |
This file contains hidden or 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
| <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Navigation.ascx.cs" Inherits="MySitecoreSite.Sublayouts.Navigation" %> | |
| <ul class="nav navbar-nav navbar-right"> | |
| <asp:Repeater ID="rptMenu" runat="server"> | |
| <itemtemplate> | |
| <li> | |
| <a href="<%# Eval("Link") %>"><%# Eval("Text") %></a> | |
| </li> | |
| </itemtemplate> | |
| </asp:Repeater> |
This file contains hidden or 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
| @media print { | |
| body * { | |
| visibility:hidden; | |
| } | |
| .printable, .printable * { | |
| visibility:visible; | |
| } | |
| .printable { | |
| position:absolute; | |
| left:0; |
This file contains hidden or 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
| @media print { | |
| body * { | |
| visibility:hidden; | |
| } | |
| .printable, .printable * { | |
| visibility:visible; | |
| } | |
| .printable { | |
| position:absolute; | |
| left:0; |
This file contains hidden or 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
| public partial class rich { | |
| private System.Xml.XmlNode[] anyField; | |
| /// <remarks/> | |
| [System.Xml.Serialization.XmlTextAttribute()] | |
| [System.Xml.Serialization.XmlAnyElementAttribute()] | |
| public System.Xml.XmlNode[] Any { | |
| get { | |
| return this.anyField; |
This file contains hidden or 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
| [System.Xml.Serialization.XmlRootAttribute(Namespace = "", ElementName = "root", IsNullable = false)] | |
| public partial class News { |