Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CultureTable.cs
- FixedPageAutomationPeer.cs
- AssemblyUtil.cs
- ScheduleChanges.cs
- RectangleHotSpot.cs
- XmlNavigatorFilter.cs
- SafeRightsManagementPubHandle.cs
- newinstructionaction.cs
- CounterSample.cs
- SessionStateSection.cs
- WinInetCache.cs
- RoutedEventValueSerializer.cs
- LineServicesCallbacks.cs
- HiddenField.cs
- XmlILCommand.cs
- LinqDataSourceView.cs
- XpsPackagingException.cs
- CqlQuery.cs
- WindowsListViewScroll.cs
- PartialClassGenerationTaskInternal.cs
- SupportsEventValidationAttribute.cs
- FileInfo.cs
- BaseCodePageEncoding.cs
- SystemWebExtensionsSectionGroup.cs
- HyperLinkStyle.cs
- Attachment.cs
- TransactionException.cs
- InfoCardClaimCollection.cs
- ParameterModifier.cs
- ExecutionContext.cs
- Msec.cs
- XmlTextReaderImpl.cs
- DataGridRowClipboardEventArgs.cs
- TextTreeObjectNode.cs
- shaperfactory.cs
- TableAutomationPeer.cs
- SmtpLoginAuthenticationModule.cs
- RemotingClientProxy.cs
- NavigationProperty.cs
- ClientProtocol.cs
- WindowVisualStateTracker.cs
- Compiler.cs
- PerformanceCounterManager.cs
- DataSysAttribute.cs
- DbParameterCollection.cs
- Stream.cs
- CapabilitiesRule.cs
- DomainUpDown.cs
- ClientScriptManager.cs
- SrgsOneOf.cs
- mda.cs
- GroupQuery.cs
- XmlFormatExtensionAttribute.cs
- ButtonRenderer.cs
- ParallelTimeline.cs
- WrapPanel.cs
- ValidatorCollection.cs
- UriTemplateTrieNode.cs
- ComponentDispatcherThread.cs
- SqlClientMetaDataCollectionNames.cs
- ErrorProvider.cs
- Panel.cs
- JobInputBins.cs
- ManipulationCompletedEventArgs.cs
- XhtmlConformanceSection.cs
- GenericTypeParameterBuilder.cs
- DataGridViewRowEventArgs.cs
- XmlTextEncoder.cs
- ActivationServices.cs
- XmlChildEnumerator.cs
- SerialPinChanges.cs
- ConvertEvent.cs
- grammarelement.cs
- DBProviderConfigurationHandler.cs
- ListItemCollection.cs
- MimeTypePropertyAttribute.cs
- DelegateSerializationHolder.cs
- SqlUtil.cs
- RegistryKey.cs
- PointConverter.cs
- DataServiceStreamProviderWrapper.cs
- SqlDataSourceStatusEventArgs.cs
- ColorContext.cs
- ClientRuntimeConfig.cs
- UrlMappingCollection.cs
- ClientSideProviderDescription.cs
- PointUtil.cs
- TcpStreams.cs
- BinaryCommonClasses.cs
- PackWebResponse.cs
- ThreadAbortException.cs
- DeviceContext2.cs
- CharAnimationBase.cs
- ErasingStroke.cs
- CapabilitiesState.cs
- XmlNodeWriter.cs
- XmlReflectionMember.cs
- ToggleButtonAutomationPeer.cs
- TrustManagerPromptUI.cs
- SecurityPolicySection.cs