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
- TextReader.cs
- RightsManagementInformation.cs
- OdbcConnectionPoolProviderInfo.cs
- HtmlImage.cs
- ClientTarget.cs
- ZoneButton.cs
- EventMappingSettingsCollection.cs
- SchemaSetCompiler.cs
- GorillaCodec.cs
- Oid.cs
- HtmlTable.cs
- LogFlushAsyncResult.cs
- InsufficientMemoryException.cs
- CodeConstructor.cs
- RouteValueExpressionBuilder.cs
- AppDomainFactory.cs
- SupportsEventValidationAttribute.cs
- OdbcEnvironmentHandle.cs
- TypeInitializationException.cs
- DrawingContextWalker.cs
- CTreeGenerator.cs
- EventMappingSettingsCollection.cs
- TypeInitializationException.cs
- FormatterConverter.cs
- QueryReaderSettings.cs
- PathSegment.cs
- ReturnType.cs
- SystemBrushes.cs
- EdmValidator.cs
- IList.cs
- Effect.cs
- KernelTypeValidation.cs
- _SslStream.cs
- Literal.cs
- SessionState.cs
- ReceiveSecurityHeaderElementManager.cs
- MessageVersionConverter.cs
- FileDialog_Vista_Interop.cs
- TagMapCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- SwitchExpression.cs
- CommonRemoteMemoryBlock.cs
- ObjectPropertyMapping.cs
- SystemIPInterfaceStatistics.cs
- PropertyToken.cs
- TcpConnectionPoolSettingsElement.cs
- ParsedAttributeCollection.cs
- HttpConfigurationContext.cs
- LocalValueEnumerator.cs
- ObjectViewQueryResultData.cs
- ListControlBoundActionList.cs
- UnmanagedMarshal.cs
- HScrollProperties.cs
- VariableQuery.cs
- CallTemplateAction.cs
- PropertyTabAttribute.cs
- SafeCryptContextHandle.cs
- DynamicMethod.cs
- SchemaTypeEmitter.cs
- Funcletizer.cs
- safex509handles.cs
- TemplateBindingExpressionConverter.cs
- BeginStoryboard.cs
- WorkflowValidationFailedException.cs
- SafeHandle.cs
- TriState.cs
- unsafenativemethodstextservices.cs
- SqlNode.cs
- HttpProfileBase.cs
- DiscoveryReference.cs
- AuthorizationRuleCollection.cs
- MsmqIntegrationBindingElement.cs
- Label.cs
- Baml2006KeyRecord.cs
- DBConnectionString.cs
- TraceFilter.cs
- DiffuseMaterial.cs
- ControlValuePropertyAttribute.cs
- RefType.cs
- ClosableStream.cs
- ScrollData.cs
- ConfigPathUtility.cs
- ContextStaticAttribute.cs
- ViewEvent.cs
- webeventbuffer.cs
- DataGridTable.cs
- GPStream.cs
- EventArgs.cs
- TableColumn.cs
- TypeDescriptor.cs
- ControlIdConverter.cs
- Wizard.cs
- PtsContext.cs
- Knowncolors.cs
- Rotation3D.cs
- BaseTemplateParser.cs
- AccessibilityApplicationManager.cs
- ObjectItemCollection.cs
- IDQuery.cs
- EntityType.cs