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
- CngAlgorithm.cs
- CapiNative.cs
- ParameterSubsegment.cs
- EventLogEntry.cs
- SqlGatherProducedAliases.cs
- XmlDeclaration.cs
- WebBrowserProgressChangedEventHandler.cs
- CodeDOMUtility.cs
- OracleConnection.cs
- ScaleTransform.cs
- ColorConvertedBitmap.cs
- MatrixCamera.cs
- WebPartTransformerCollection.cs
- InternalControlCollection.cs
- SharedMemory.cs
- QualifierSet.cs
- NativeMethods.cs
- PrintingPermission.cs
- Utils.cs
- PositiveTimeSpanValidatorAttribute.cs
- AutomationElement.cs
- DocumentXPathNavigator.cs
- SkinBuilder.cs
- Int16KeyFrameCollection.cs
- Rule.cs
- NTAccount.cs
- NonSerializedAttribute.cs
- EntryPointNotFoundException.cs
- StorageRoot.cs
- BasicExpressionVisitor.cs
- HttpCookiesSection.cs
- NamedPipeDuplicateContext.cs
- ItemsPresenter.cs
- XmlQueryRuntime.cs
- IriParsingElement.cs
- TextMetrics.cs
- EndSelectCardRequest.cs
- SystemIPGlobalProperties.cs
- PathStreamGeometryContext.cs
- ZoneButton.cs
- DataGridColumnEventArgs.cs
- CustomError.cs
- TextProperties.cs
- ImplicitInputBrush.cs
- HandlerMappingMemo.cs
- ConfigurationElementCollection.cs
- Separator.cs
- FrameworkTemplate.cs
- GlyphRunDrawing.cs
- ZipIOModeEnforcingStream.cs
- UpdateManifestForBrowserApplication.cs
- MdImport.cs
- Section.cs
- TextDecorationCollectionConverter.cs
- EdmMember.cs
- XdrBuilder.cs
- ColumnWidthChangedEvent.cs
- SemaphoreSecurity.cs
- BulletChrome.cs
- DBCSCodePageEncoding.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- WindowsFont.cs
- Help.cs
- DataDocumentXPathNavigator.cs
- ConvertEvent.cs
- Span.cs
- HtmlInputPassword.cs
- TextEditorDragDrop.cs
- PolicyLevel.cs
- CultureTable.cs
- FlowLayoutSettings.cs
- DataGridCaption.cs
- SamlSecurityToken.cs
- MobileControlBuilder.cs
- ContactManager.cs
- SiteMapNodeItemEventArgs.cs
- XmlSchemaSequence.cs
- Point3DValueSerializer.cs
- IISUnsafeMethods.cs
- UpdatePanelTrigger.cs
- WebPartTransformerAttribute.cs
- WebBaseEventKeyComparer.cs
- DomNameTable.cs
- CustomCategoryAttribute.cs
- oledbmetadatacollectionnames.cs
- DrawingCollection.cs
- WindowsUpDown.cs
- XmlSchemaCompilationSettings.cs
- Error.cs
- DeviceOverridableAttribute.cs
- AssemblyInfo.cs
- FlowStep.cs
- SecurityPermission.cs
- ContentDisposition.cs
- ADMembershipUser.cs
- UnsafeNativeMethods.cs
- ChannelAcceptor.cs
- ApplicationHost.cs
- AsyncContentLoadedEventArgs.cs
- MembershipSection.cs