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
- ApplicationTrust.cs
- FormsAuthenticationUserCollection.cs
- TimeStampChecker.cs
- TablePattern.cs
- EdmError.cs
- WebPartManager.cs
- XPathNodePointer.cs
- LocalizableResourceBuilder.cs
- EventEntry.cs
- PermissionToken.cs
- ProtocolsSection.cs
- GACMembershipCondition.cs
- DataSourceControl.cs
- MemberPathMap.cs
- Switch.cs
- SecureUICommand.cs
- BaseTreeIterator.cs
- MinMaxParagraphWidth.cs
- CancellationState.cs
- RequestNavigateEventArgs.cs
- ValidationHelper.cs
- SqlInternalConnectionSmi.cs
- DataGridAddNewRow.cs
- RemotingConfiguration.cs
- ApplicationException.cs
- LogicalTreeHelper.cs
- Binding.cs
- DependencyPropertyKey.cs
- DrawToolTipEventArgs.cs
- RpcResponse.cs
- EmbossBitmapEffect.cs
- EntityContainerRelationshipSetEnd.cs
- CurrencyManager.cs
- Maps.cs
- SortDescription.cs
- CodeGotoStatement.cs
- ClientConvert.cs
- ViewSimplifier.cs
- X509CertificateTrustedIssuerElement.cs
- HeaderLabel.cs
- FlowDocument.cs
- ProcessThreadCollection.cs
- SQLByteStorage.cs
- TypeBinaryExpression.cs
- QueryReaderSettings.cs
- StylusDownEventArgs.cs
- RowToFieldTransformer.cs
- Constraint.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- WasHttpHandlersInstallComponent.cs
- SiteMembershipCondition.cs
- CacheAxisQuery.cs
- ISO2022Encoding.cs
- StaticExtensionConverter.cs
- LinqDataSourceHelper.cs
- QueueException.cs
- QueryCursorEventArgs.cs
- WebPartCatalogAddVerb.cs
- ImageSource.cs
- SchemaSetCompiler.cs
- WindowsMenu.cs
- WebEvents.cs
- CompositionAdorner.cs
- TemplateBaseAction.cs
- GenericTypeParameterConverter.cs
- RequestStatusBarUpdateEventArgs.cs
- Gdiplus.cs
- CompositeFontParser.cs
- SecureEnvironment.cs
- CardSpaceSelector.cs
- CheckBox.cs
- XPathArrayIterator.cs
- ApplicationServicesHostFactory.cs
- CategoryGridEntry.cs
- ZoneMembershipCondition.cs
- TextBoxRenderer.cs
- SamlAuthenticationStatement.cs
- Point3DCollection.cs
- HiddenField.cs
- EntityDataSourceEntitySetNameItem.cs
- NullRuntimeConfig.cs
- RoutingEndpointTrait.cs
- ReflectionTypeLoadException.cs
- SafeHandle.cs
- Version.cs
- StyleModeStack.cs
- PrintDialogDesigner.cs
- CqlErrorHelper.cs
- PackageRelationshipCollection.cs
- RequestCachingSection.cs
- SortFieldComparer.cs
- DbReferenceCollection.cs
- EdmItemError.cs
- SmiMetaData.cs
- GuidelineSet.cs
- coordinator.cs
- FrameworkTemplate.cs
- PropertyRef.cs
- DataContractJsonSerializer.cs
- Range.cs