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
| <div style="display:table-cell; vertical-align:middle"> ... </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
| static void Main(string[] args) | |
| { | |
| ServicePointManager.ServerCertificateValidationCallback += | |
| new RemoteCertificateValidationCallback(ValidateCertificate); | |
| Console.WriteLine("Client starting..."); | |
| ApplicationService svc = new ApplicationService(); | |
| App app = svc.GetAppInfo(); |
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
| imagex /apply e:\sources\install.wim 1 f:\ |
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
| delete [System.Activities.DurableInstancing].[InstancePromotedPropertiesTable] | |
| delete [System.Activities.DurableInstancing].[KeysTable] | |
| delete [System.Activities.DurableInstancing].[InstanceMetadataChangesTable] | |
| delete [System.Activities.DurableInstancing].[RunnableInstancesTable] | |
| delete [System.Activities.DurableInstancing].[InstancesTable] |
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
| this.btnReject.OnClientClick = string.Format("if(!confirm('{0}')) return false;", Language.GetResource("AreYouSureToRejectTheForm", this.Page)); |
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
| ^(?!\.)("([^"\r\\]|\\["\r\\])*"|([-a-z0-9!#$%&'*+/=?^_`{|}~] |(?@[a-z0-9][\w\.-]*[a-z0-9]\.[a-z][a-z\.]*[a-z]$ |
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.Configuration.Configuration configuration = | |
| WebConfigurationManager.OpenWebConfiguration("/YourSite"); | |
| // Get the external Authentication section. | |
| AuthenticationSection authenticationSection = | |
| (AuthenticationSection)configuration.GetSection( | |
| "system.web/authentication"); | |
| // Get the external Forms section . | |
| FormsAuthenticationConfiguration formsAuthentication = |
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
| function isCardNumberValid(cardNumber, allowSpaces) { | |
| if (allowSpaces) { | |
| cardNumber = cardNumber.replace(/ /g, ''); | |
| } | |
| if (!cardNumber.match(/^\d+$/)) { | |
| return false; | |
| } | |
| var checksum = 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
| function createCORSRequest (poMethod, pcURL) { | |
| var oXHR = new XMLHttpRequest(); | |
| if ('withCredentials' in oXHR) { | |
| // Check if the XMLHttpRequest object has a "withCredentials" property. | |
| // "withCredentials" only exists on XMLHTTPRequest2 objects. | |
| oXHR.open(poMethod, pcURL, true); | |
| } else if (typeof XDomainRequest != 'undefined') { | |
| // Otherwise, check if XDomainRequest. | |
| // XDomainRequest only exists in IE, and is IE's way of making CORS requests. |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Data.Common; | |
| using System.Data.Entity; | |
| using System.Data.Entity.Infrastructure.Interception; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| namespace Demo |