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
- ProvidersHelper.cs
- EventDescriptorCollection.cs
- ClientProxyGenerator.cs
- SqlConnectionFactory.cs
- ComponentDispatcher.cs
- ParameterBinding.cs
- CryptoHandle.cs
- NativeMethods.cs
- CryptoKeySecurity.cs
- StreamMarshaler.cs
- CompilerHelpers.cs
- PrintingPermissionAttribute.cs
- XmlEntity.cs
- BamlLocalizabilityResolver.cs
- UniqueIdentifierService.cs
- ReferencedCollectionType.cs
- LinqDataSourceInsertEventArgs.cs
- _ChunkParse.cs
- DateRangeEvent.cs
- x509utils.cs
- PathFigure.cs
- RenderDataDrawingContext.cs
- GridViewColumn.cs
- NotifyIcon.cs
- TransformCollection.cs
- TTSVoice.cs
- SHA512.cs
- BufferedGraphicsContext.cs
- CacheHelper.cs
- WebPartConnectionsEventArgs.cs
- SyndicationSerializer.cs
- EntityDesignPluralizationHandler.cs
- DbConnectionPoolIdentity.cs
- DateTimeFormatInfoScanner.cs
- CapabilitiesRule.cs
- X509CertificateClaimSet.cs
- ServicePoint.cs
- MediaTimeline.cs
- MaskedTextBoxTextEditor.cs
- MethodRental.cs
- CustomPopupPlacement.cs
- ReservationCollection.cs
- FormCollection.cs
- CompositeDataBoundControl.cs
- DataTableExtensions.cs
- MobileCategoryAttribute.cs
- AssociationEndMember.cs
- Soap11ServerProtocol.cs
- EmptyElement.cs
- TableSectionStyle.cs
- MetricEntry.cs
- BitmapEffectCollection.cs
- ReaderWriterLockWrapper.cs
- EmptyCollection.cs
- RoleManagerSection.cs
- ColorConvertedBitmapExtension.cs
- QueryAsyncResult.cs
- DataKey.cs
- ExpressionPrinter.cs
- OleDbException.cs
- PolyQuadraticBezierSegment.cs
- FileInfo.cs
- ByteStream.cs
- WebPartZoneAutoFormat.cs
- PropertyToken.cs
- CodeExpressionStatement.cs
- XmlDeclaration.cs
- InternalDispatchObject.cs
- MenuStrip.cs
- SafeArrayRankMismatchException.cs
- NullableBoolConverter.cs
- ExtensionQuery.cs
- QuadraticBezierSegment.cs
- _ConnectionGroup.cs
- DbMetaDataFactory.cs
- ObjectTag.cs
- RewritingPass.cs
- EqualityArray.cs
- ConfigXmlAttribute.cs
- _SSPISessionCache.cs
- UTF7Encoding.cs
- CollectionsUtil.cs
- KeyPullup.cs
- Deflater.cs
- MobileControlsSectionHandler.cs
- WebPartConnectionCollection.cs
- JournalEntryStack.cs
- BuildManager.cs
- Transaction.cs
- RawStylusInputCustomDataList.cs
- DetailsViewInsertEventArgs.cs
- EventDescriptor.cs
- InteropBitmapSource.cs
- ExpressionQuoter.cs
- BindableAttribute.cs
- ResXBuildProvider.cs
- FixedSOMTableCell.cs
- PageCodeDomTreeGenerator.cs
- EdmPropertyAttribute.cs
- TypeForwardedToAttribute.cs