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
public static string GetPageAsString(Uri address) | |
{ | |
var result = ""; | |
var request = WebRequest.Create(address) as HttpWebRequest; | |
using (var response = request.GetResponse() as HttpWebResponse) | |
{ | |
var reader = new StreamReader(response.GetResponseStream()); | |
result = reader.ReadToEnd(); |
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
public class TestModule: IHttpModule | |
{ | |
public void Init(HttpApplication context) | |
{ | |
DataFactory.Instance.LoadingPage += LoadingPage; | |
} | |
public void LoadingPage(object sender, PageEventArgs e) | |
{ | |
} |
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" ?> | |
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> | |
<session-factory> | |
<property name="connection.connection_string_name">MyApplication</property> | |
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property> | |
<property name="connection.connection_string">Server=(local);initial catalog=Database1;User Id=User1;Password=Password;</property> | |
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> | |
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> | |
<property name="show_sql">true</property> | |
<property name='proxyfactory.factory_class'>NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property> |
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" ?> | |
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" auto-import="true"> | |
<class name="My.Application.Paragraph, My.Application" lazy="false"> | |
<id name="Id" access="field" column="Id" > | |
<generator class="identity" /> | |
</id> | |
<property name="Text" access="field" column="Text"/> | |
<property name="DateCreated" access="field" column="DateCreated"/> | |
</class> | |
</hibernate-mapping> |
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> | |
<configSections> | |
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> | |
<section name="workflowRuntime" type="System.Workflow.Runtime.Configuration.WorkflowRuntimeSection, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> | |
<section name="wftools.services.common.ado" type="WFTools.Services.Common.Ado.Configuration.CommonAdoProviderSettings,EPiServer.WFTools.Services" /> | |
<section name="wftools.services.persistence.ado" type="WFTools.Services.Persistence.Ado.Configuration.PersistenceAdoProviderSettings,EPiServer.WFTools.Services" /> | |
<section name="wftools.services.tracking.ado" type="WFTools.Services.Tracking.Ado.Configuration.TrackingAdoProviderSettings,EPiServer.WFTools.Services" /> | |
<section name="episerver" type="EPiServer.Configuration.EP |
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.Specialized; | |
using System.IO; | |
using System.Web.Hosting; | |
namespace EPiServer.Extensions | |
{ | |
internal static class VirtualPathProviderExtensions | |
{ | |
public static NameValueCollection FixPhysicalPath(this NameValueCollection configParameters) |
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
form label:after{ | |
content: ':'; | |
} | |
.form-template label:after{ | |
content: ': *'; | |
} |
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
EXEC sp_MSforeachtable @command1="EXEC sp_spaceused '?'" |
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
(function ($) { | |
$.fn.html5Placeholder = function () { | |
this.each(function(index) { | |
var placeHolderText = $(this).attr("placeholder"); | |
if (placeHolderText) { | |
$(this).val(placeHolderText); //set the placeholder text as a text in the input box | |
$(this).focusin(function() { //remove the placeholder text on focusin | |
if ($(this).val() === placeHolderText) | |
$(this).val(""); |
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
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<style> | |
.styled-dropdown { | |
border: 1px solid #333333; | |
color: #000000; | |
cursor: pointer; |
OlderNewer