Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / ApplicationServiceManager.cs / 1305376 / 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
- MasterPageParser.cs
- OuterGlowBitmapEffect.cs
- StringWriter.cs
- GPRECT.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ProcessHostFactoryHelper.cs
- CheckBoxBaseAdapter.cs
- InfiniteIntConverter.cs
- GridViewEditEventArgs.cs
- DeviceContexts.cs
- RelativeSource.cs
- ContextQuery.cs
- Material.cs
- SecurityTokenSerializer.cs
- XsltConvert.cs
- FontUnitConverter.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ClientBuildManagerCallback.cs
- CodeTypeDeclarationCollection.cs
- TraceContext.cs
- DataGridRowAutomationPeer.cs
- AnnotationMap.cs
- WinFormsSpinner.cs
- CryptoProvider.cs
- HttpApplicationStateWrapper.cs
- TreeNodeBindingCollection.cs
- UIAgentCrashedException.cs
- CellLabel.cs
- XsdBuilder.cs
- Missing.cs
- input.cs
- RegexRunnerFactory.cs
- TextCollapsingProperties.cs
- XmlSchemaAppInfo.cs
- ConfigurationConverterBase.cs
- FileDialogPermission.cs
- ChtmlCommandAdapter.cs
- FontNamesConverter.cs
- Animatable.cs
- QilTypeChecker.cs
- CodeTypeDelegate.cs
- LocalizableAttribute.cs
- FileUtil.cs
- Buffer.cs
- TransformedBitmap.cs
- CharKeyFrameCollection.cs
- PointCollection.cs
- BookmarkList.cs
- LinearGradientBrush.cs
- InvalidWMPVersionException.cs
- GradientStopCollection.cs
- ClientScriptItemCollection.cs
- CardSpaceSelector.cs
- XmlNavigatorStack.cs
- CorrelationTokenTypeConvertor.cs
- SqlMethodAttribute.cs
- BindingUtils.cs
- HistoryEventArgs.cs
- HandleCollector.cs
- Error.cs
- SqlDataSourceCommandEventArgs.cs
- WebEventTraceProvider.cs
- CompressedStack.cs
- PaintValueEventArgs.cs
- NotifyCollectionChangedEventArgs.cs
- CachingParameterInspector.cs
- GenericAuthenticationEventArgs.cs
- Console.cs
- DelayedRegex.cs
- BooleanSwitch.cs
- SqlAliasesReferenced.cs
- AutomationPatternInfo.cs
- PropertyGridView.cs
- KoreanCalendar.cs
- ToolBarOverflowPanel.cs
- RequestCacheManager.cs
- WebPartDeleteVerb.cs
- ChangeNode.cs
- MatrixValueSerializer.cs
- OutputCacheSection.cs
- TextRunCache.cs
- DomainUpDown.cs
- DataGridViewSelectedColumnCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlElementAttribute.cs
- PlainXmlWriter.cs
- NativeMethods.cs
- ExceptionUtil.cs
- TreeWalker.cs
- validationstate.cs
- LinkedResourceCollection.cs
- TemplateModeChangedEventArgs.cs
- XmlSerializationReader.cs
- Image.cs
- RoutedPropertyChangedEventArgs.cs
- WebDescriptionAttribute.cs
- RelationshipEndMember.cs
- IBuiltInEvidence.cs
- SQLInt64Storage.cs
- FormViewDeletedEventArgs.cs