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
- ValidationResult.cs
- TextBox.cs
- FastEncoder.cs
- FixedHighlight.cs
- SelectionProcessor.cs
- EntityViewGenerationAttribute.cs
- RegexRunnerFactory.cs
- RawUIStateInputReport.cs
- SwitchAttribute.cs
- InstallHelper.cs
- GraphicsPath.cs
- SchemaRegistration.cs
- SecondaryViewProvider.cs
- RealizationDrawingContextWalker.cs
- EventDescriptor.cs
- TabItemAutomationPeer.cs
- DataGridAutoFormat.cs
- MatrixTransform.cs
- DataGridAddNewRow.cs
- GuidTagList.cs
- ReadOnlyCollectionBuilder.cs
- XMLSchema.cs
- ObjectViewEntityCollectionData.cs
- ToolStripLocationCancelEventArgs.cs
- EntityChangedParams.cs
- DeferredTextReference.cs
- ViewSimplifier.cs
- safemediahandle.cs
- SocketElement.cs
- XsltConvert.cs
- AccessDataSource.cs
- ItemAutomationPeer.cs
- DbConnectionPoolOptions.cs
- Switch.cs
- Timer.cs
- Rfc2898DeriveBytes.cs
- AssemblyBuilderData.cs
- QueryCacheEntry.cs
- DataTableNameHandler.cs
- RecoverInstanceLocksCommand.cs
- HierarchicalDataBoundControl.cs
- Blend.cs
- KeyboardNavigation.cs
- Int32RectConverter.cs
- RedistVersionInfo.cs
- GcSettings.cs
- WebRequestModuleElement.cs
- Point4DConverter.cs
- ValueTypePropertyReference.cs
- XmlSortKey.cs
- CodePageUtils.cs
- XmlSchemaSimpleTypeList.cs
- ParseHttpDate.cs
- UnicastIPAddressInformationCollection.cs
- AuthorizationRule.cs
- ProcessRequestArgs.cs
- ThicknessConverter.cs
- CodeValidator.cs
- CompilerResults.cs
- ThemeDirectoryCompiler.cs
- ValidationEventArgs.cs
- Label.cs
- filewebrequest.cs
- baseaxisquery.cs
- ChtmlMobileTextWriter.cs
- IssuedTokensHeader.cs
- RichTextBoxAutomationPeer.cs
- AttributeEmitter.cs
- Point3DCollectionConverter.cs
- CompareInfo.cs
- DefaultEventAttribute.cs
- AssemblyBuilder.cs
- SByteConverter.cs
- WindowsGraphics2.cs
- SupportingTokenSpecification.cs
- XamlReaderHelper.cs
- PathFigureCollection.cs
- RectAnimationUsingKeyFrames.cs
- IndexedString.cs
- InfoCardAsymmetricCrypto.cs
- MethodSignatureGenerator.cs
- FormViewModeEventArgs.cs
- XmlExpressionDumper.cs
- DocumentProperties.cs
- SettingsPropertyIsReadOnlyException.cs
- PeerService.cs
- BindingMemberInfo.cs
- Point3DKeyFrameCollection.cs
- WebPartUtil.cs
- Html32TextWriter.cs
- FramingEncoders.cs
- ResourcesBuildProvider.cs
- SqlNodeTypeOperators.cs
- DataGridViewCellParsingEventArgs.cs
- HtmlInputPassword.cs
- WinEventWrap.cs
- ToolStripProgressBar.cs
- AlternateViewCollection.cs
- EntityConnection.cs
- CornerRadiusConverter.cs