Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / ui / ApplicationServiceManager.cs / 1 / ApplicationServiceManager.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Web.UI; using System.Web.Resources; using System.Globalization; internal static class ApplicationServiceManager { public const int StringBuilderCapacity = 128; public static string MergeServiceUrls(string serviceUrl, string existingUrl, Control urlBase) { serviceUrl = serviceUrl.Trim(); if(serviceUrl.Length > 0) { serviceUrl = urlBase.ResolveClientUrl(serviceUrl); if(String.IsNullOrEmpty(existingUrl)) { // proxy has specified a url and we don't have one yet, so use it existingUrl = serviceUrl; } else { // proxy has specified a url but we arleady have a url either from ScriptManager itself or a previous proxy. // The urls must agree or an exception is thrown. if(!string.Equals(serviceUrl, existingUrl, StringComparison.OrdinalIgnoreCase)) { throw new ArgumentException(AtlasWeb.AppService_MultiplePaths); } } } return existingUrl; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Web.UI; using System.Web.Resources; using System.Globalization; internal static class ApplicationServiceManager { public const int StringBuilderCapacity = 128; public static string MergeServiceUrls(string serviceUrl, string existingUrl, Control urlBase) { serviceUrl = serviceUrl.Trim(); if(serviceUrl.Length > 0) { serviceUrl = urlBase.ResolveClientUrl(serviceUrl); if(String.IsNullOrEmpty(existingUrl)) { // proxy has specified a url and we don't have one yet, so use it existingUrl = serviceUrl; } else { // proxy has specified a url but we arleady have a url either from ScriptManager itself or a previous proxy. // The urls must agree or an exception is thrown. if(!string.Equals(serviceUrl, existingUrl, StringComparison.OrdinalIgnoreCase)) { throw new ArgumentException(AtlasWeb.AppService_MultiplePaths); } } } return existingUrl; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Relationship.cs
- ParserHooks.cs
- SerialPort.cs
- ObjectListCommandsPage.cs
- XsltLibrary.cs
- ProcessModelSection.cs
- TagPrefixAttribute.cs
- TriggerAction.cs
- ObjectHandle.cs
- XXXOnTypeBuilderInstantiation.cs
- ConsumerConnectionPointCollection.cs
- TraceHandlerErrorFormatter.cs
- X509Extension.cs
- QueryContinueDragEventArgs.cs
- HostingEnvironment.cs
- ErrorWebPart.cs
- WinEventWrap.cs
- dbenumerator.cs
- DataServiceException.cs
- FileLevelControlBuilderAttribute.cs
- ResizeBehavior.cs
- TimeSpan.cs
- XmlSchemaComplexContentRestriction.cs
- ControlHelper.cs
- TdsParserStateObject.cs
- ConfigXmlText.cs
- QueryComponents.cs
- InterleavedZipPartStream.cs
- WriterOutput.cs
- StringValidator.cs
- IHttpResponseInternal.cs
- Component.cs
- DynamicResourceExtension.cs
- RenderingBiasValidation.cs
- AutomationProperty.cs
- RadioButtonAutomationPeer.cs
- PartBasedPackageProperties.cs
- SourceFileInfo.cs
- RuntimeConfig.cs
- DefaultValueTypeConverter.cs
- UnconditionalPolicy.cs
- RangeValuePatternIdentifiers.cs
- WebPartConnection.cs
- HttpApplication.cs
- hebrewshape.cs
- DesignerListAdapter.cs
- ContainerControlDesigner.cs
- DataGridViewColumnCollectionDialog.cs
- BindingContext.cs
- JsonByteArrayDataContract.cs
- XmlSchemaComplexType.cs
- SoapCodeExporter.cs
- FontStretchConverter.cs
- GuidTagList.cs
- Region.cs
- UIPermission.cs
- SafeThreadHandle.cs
- CapabilitiesPattern.cs
- PathGradientBrush.cs
- TransportSecurityHelpers.cs
- TimelineClockCollection.cs
- HttpProfileGroupBase.cs
- TimeSpan.cs
- DelegatedStream.cs
- ViewBase.cs
- OdbcCommandBuilder.cs
- SiblingIterators.cs
- Matrix3DConverter.cs
- ServiceContractGenerator.cs
- MediaContext.cs
- AdornerPresentationContext.cs
- NotConverter.cs
- DesignerSerializerAttribute.cs
- ComIntegrationManifestGenerator.cs
- NetWebProxyFinder.cs
- ItemsControl.cs
- Condition.cs
- X509ThumbprintKeyIdentifierClause.cs
- ConsoleTraceListener.cs
- BindingMemberInfo.cs
- FlowDocumentPage.cs
- SqlCacheDependencySection.cs
- IndicCharClassifier.cs
- TheQuery.cs
- FileAuthorizationModule.cs
- Camera.cs
- SingleAnimationUsingKeyFrames.cs
- TemplatedMailWebEventProvider.cs
- InputProcessorProfiles.cs
- DBCSCodePageEncoding.cs
- ToolStripSplitButton.cs
- DecimalAnimation.cs
- LocalizedNameDescriptionPair.cs
- ProfileGroupSettingsCollection.cs
- TemplateApplicationHelper.cs
- MappableObjectManager.cs
- RuntimeConfigLKG.cs
- XmlTextReaderImpl.cs
- ScriptingSectionGroup.cs
- _Events.cs