Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SqlStream.cs
- PerspectiveCamera.cs
- WebPartCollection.cs
- DriveNotFoundException.cs
- DoubleConverter.cs
- TemplateControlBuildProvider.cs
- ProcessProtocolHandler.cs
- LayoutSettings.cs
- StackOverflowException.cs
- precedingsibling.cs
- PictureBoxDesigner.cs
- Int32Rect.cs
- DataGridViewMethods.cs
- TextDecoration.cs
- SoapMessage.cs
- SQLMoney.cs
- AssemblyInfo.cs
- ChannelTraceRecord.cs
- IpcChannelHelper.cs
- DESCryptoServiceProvider.cs
- DataControlFieldCollection.cs
- ImageIndexConverter.cs
- TextSchema.cs
- CuspData.cs
- IRCollection.cs
- MetadataCollection.cs
- HelpKeywordAttribute.cs
- DispatcherEventArgs.cs
- ItemChangedEventArgs.cs
- MD5Cng.cs
- DocumentPaginator.cs
- TripleDESCryptoServiceProvider.cs
- RightsManagementInformation.cs
- BoolLiteral.cs
- ThousandthOfEmRealDoubles.cs
- SqlBulkCopyColumnMapping.cs
- XmlSerializerVersionAttribute.cs
- FunctionNode.cs
- ScrollChrome.cs
- XmlSchemaSimpleTypeList.cs
- EmptyEnumerator.cs
- InvalidProgramException.cs
- BuilderPropertyEntry.cs
- DelegatingTypeDescriptionProvider.cs
- EpmCustomContentDeSerializer.cs
- MimeFormatExtensions.cs
- QueryFunctions.cs
- SignedInfo.cs
- CachedBitmap.cs
- FormsAuthenticationEventArgs.cs
- DesignerDataColumn.cs
- BidPrivateBase.cs
- SubpageParagraph.cs
- LinkTarget.cs
- SQLDoubleStorage.cs
- DefaultValueConverter.cs
- _BaseOverlappedAsyncResult.cs
- ObjectListCommandCollection.cs
- TemplateControlBuildProvider.cs
- XmlSchemaSimpleContentExtension.cs
- ConfigXmlWhitespace.cs
- X509Extension.cs
- ToolbarAUtomationPeer.cs
- EventsTab.cs
- RadioButton.cs
- DefaultEvaluationContext.cs
- ObjectViewListener.cs
- SiteMapDataSource.cs
- Semaphore.cs
- FamilyMapCollection.cs
- DataGridViewCellStateChangedEventArgs.cs
- ScaleTransform.cs
- CanonicalFontFamilyReference.cs
- ExtendLockAsyncResult.cs
- PropertyDescriptorGridEntry.cs
- XomlCompiler.cs
- MappingException.cs
- CounterCreationDataCollection.cs
- String.cs
- SafeThreadHandle.cs
- CodeTypeDelegate.cs
- Expression.cs
- DesignerFrame.cs
- ToolStripLocationCancelEventArgs.cs
- UIntPtr.cs
- TreeChangeInfo.cs
- XamlSerializationHelper.cs
- ArrangedElementCollection.cs
- BinaryObjectWriter.cs
- TableLayoutSettingsTypeConverter.cs
- QuaternionAnimation.cs
- FieldToken.cs
- DataGridViewCellCancelEventArgs.cs
- DiagnosticsConfiguration.cs
- ProxyHelper.cs
- SiteMapDataSource.cs
- XPathMessageFilterElement.cs
- TypeLibraryHelper.cs
- PropertyEmitter.cs
- StoreItemCollection.Loader.cs