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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Validations.aspx.cs" Inherits="Validations" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<title></title> | |
<head id="Head1" runat="server"> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" ></script> | |
<style type="text/css"> | |
.redcolor |
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; | |
namespace ForeachTest | |
{ | |
public class Program | |
{ | |
static void Main(string[] args) |
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 System.Data; | |
namespace UsingTest | |
{ | |
public class Program | |
{ |
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.Net; | |
using System.IO; | |
namespace FtpFileCopy | |
{ | |
public class FtpFileUpload | |
{ | |
static void Main(string[] args) | |
{ |
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; | |
namespace HorseRaceProblem | |
{ | |
public class HorseRace | |
{ | |
static void Main(string[] args) |
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
#define parameters | |
$prefix = "sc901demo" | |
$PSScriptRoot = "D:\9" | |
$XConnectCollectionService = "$prefix.xconnect" | |
$sitecoreSiteName = "$prefix.local" | |
$SolrUrl = "https://localhost:8983/solr" | |
$SolrRoot = "C:\Sitecore9\solr-6.6.2" | |
$SolrService = "solr662" | |
$SqlServer = "(local)" | |
$SqlAdminUser = "sa" |
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 Sitecore.Mvc | |
<!doctype html> | |
<html> | |
<head> | |
<title>Sitecore Demo</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<div> |
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 Sitecore.ContentSearch; | |
using Sitecore.ContentSearch.SearchTypes; | |
using Sitecore.ContentSearch.SolrProvider.SolrNetIntegration; | |
using SolrNet; | |
using SolrNet.Commands.Parameters; | |
using System.Web.Mvc; | |
namespace SC9SolrDemo.Controllers | |
{ | |
public class GroupController : Controller |
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 SolrNet; | |
@using Sitecore.ContentSearch.SearchTypes | |
@model SolrQueryResults<SearchResultItem> | |
@if (Model != null) | |
{ | |
foreach (var group in Model.Grouping) | |
{ | |
foreach (var grp in group.Value.Groups) |
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 SC9SolrDemo.Models; | |
using Sitecore.ContentSearch; | |
using Sitecore.ContentSearch.SearchTypes; | |
using Sitecore.ContentSearch.SolrProvider.SolrNetIntegration; | |
using SolrNet; | |
using SolrNet.Commands.Parameters; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Mvc; |