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
<httpRuntime .. executionTimeout="110" xdt:Transform="Replace" ../> | |
<!-- Removed other configuratins for simplicity and good to apply this on CD only --> |
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
<script runat="server"> | |
private void PrintInfo() { | |
Response.Write("Country " + Sitecore.Analytics.Tracker.Current.Interaction.GeoData.Country); | |
Response.Write("<br/>"); | |
Response.Write("AreaCode " + Sitecore.Analytics.Tracker.Current.Interaction.GeoData.AreaCode); | |
Response.Write("<br/>"); | |
Response.Write("City " + Sitecore.Analytics.Tracker.Current.Interaction.GeoData.City); | |
Response.Write("<br/>"); | |
Response.Write("Latitude " + Sitecore.Analytics.Tracker.Current.Interaction.GeoData.Latitude); | |
Response.Write("<br/>"); |
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" Debug="true" %> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > | |
<%@ Import Namespace="System" %> | |
<%--Author : Kiran Patil | |
Version : 1.0.0.0--%> | |
<script language="C#" runat="server"> |
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
<script runat="server"> | |
private void SendMail() { | |
try | |
{ | |
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); | |
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient(); | |
message.From = new System.Net.Mail.MailAddress("test@test.com"); | |
message.To.Add(new System.Net.Mail.MailAddress("test@test.com")); | |
message.Subject = "Test"; | |
message.IsBodyHtml = true; //to make message body as html |
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" Debug="true" %> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > | |
<%@ Import Namespace="System" %> | |
<%@ Import Namespace="System.Web.Security" %> | |
<%--Author : Kiran Patil | |
Version : 1.0.0.0--%> |
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" Debug="true" %> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > | |
<%@ Import Namespace="System" %> | |
<%--Author : Kiran Patil | |
Version : 1.0.0.0--%> | |
<script language="C#" runat="server"> |
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" Debug="true" %> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > | |
<%@ Import Namespace="System" %> | |
<%--Author : Kiran Patil | |
Version : 1.0.0.0--%> | |
<script language="C#" runat="server"> |
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
SELECT TOP (1000) [ID | |
,[Key] | |
,[Value] | |
FROM [dbo].[Properties] | |
WHERE [Key] LIKE '%_RD00155D7621FD%' -- This is our Machinename |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<system.diagnostics> | |
<trace autoflush="true" /> | |
<sources> | |
<source name="System.Net"> | |
<listeners> | |
<add name="System.Net"/> | |
</listeners> | |
</source> |
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" %> | |
<%@ Import Namespace="Sitecore.Configuration" %> | |
<%@ Import Namespace="System.Web" %> | |
<%@ Import Namespace="System.Net" %> | |
<% | |
/* https://stackoverflow.com/questions/28286086/default-securityprotocol-in-net-4-5 */ | |
// print initial status | |
Response.Write("Runtime: " + System.Diagnostics.FileVersionInfo.GetVersionInfo(typeof(int).Assembly.Location).ProductVersion); | |
Response.Write("<br/>"); |