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
- BitmapDownload.cs
- QilStrConcat.cs
- PrincipalPermission.cs
- XdrBuilder.cs
- DataGridViewElement.cs
- SessionPageStatePersister.cs
- WebPartDisplayModeCancelEventArgs.cs
- wmiprovider.cs
- XPathConvert.cs
- XmlCDATASection.cs
- EntityDataSourceSelectingEventArgs.cs
- ToolStripContainer.cs
- DataServiceRequest.cs
- ProfessionalColors.cs
- ProfileEventArgs.cs
- TextTreeTextBlock.cs
- DesignerAttributeInfo.cs
- MatrixStack.cs
- DropAnimation.xaml.cs
- SafeEventLogReadHandle.cs
- DataGridViewTextBoxColumn.cs
- HttpGetServerProtocol.cs
- HttpResponse.cs
- MarshalByRefObject.cs
- shaperfactoryquerycachekey.cs
- COM2PropertyBuilderUITypeEditor.cs
- IImplicitResourceProvider.cs
- MouseButton.cs
- DataGridState.cs
- SqlMultiplexer.cs
- XmlSerializableWriter.cs
- ProcessMonitor.cs
- GZipDecoder.cs
- ParameterReplacerVisitor.cs
- ActivationServices.cs
- SmiTypedGetterSetter.cs
- DefaultWorkflowSchedulerService.cs
- COM2Properties.cs
- InternalConfigEventArgs.cs
- Bind.cs
- SerializationAttributes.cs
- Win32SafeHandles.cs
- Form.cs
- SymbolMethod.cs
- GetUserPreferenceRequest.cs
- BackStopAuthenticationModule.cs
- DictionaryGlobals.cs
- NavigationService.cs
- HtmlControlPersistable.cs
- CodeAssignStatement.cs
- DataSetMappper.cs
- PropertyValidationContext.cs
- AppearanceEditorPart.cs
- DrawListViewSubItemEventArgs.cs
- ListArgumentProvider.cs
- DefaultBinder.cs
- UInt64Converter.cs
- PenLineCapValidation.cs
- _Events.cs
- ResourceCollectionInfo.cs
- DragEventArgs.cs
- CookielessData.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- TextTreeDeleteContentUndoUnit.cs
- ButtonBaseAdapter.cs
- AssociationType.cs
- Expander.cs
- ListBindingHelper.cs
- CompositionDesigner.cs
- TcpServerChannel.cs
- SEHException.cs
- TextContainerHelper.cs
- Menu.cs
- FontWeightConverter.cs
- DataTemplate.cs
- ReverseInheritProperty.cs
- handlecollector.cs
- EntityCommandDefinition.cs
- QueueProcessor.cs
- OutputChannel.cs
- _AutoWebProxyScriptEngine.cs
- StoryFragments.cs
- IHttpResponseInternal.cs
- PermissionSet.cs
- SelectedDatesCollection.cs
- CompModSwitches.cs
- FlowDocumentPaginator.cs
- SqlDataSourceStatusEventArgs.cs
- PropertyGridCommands.cs
- DesignerLoader.cs
- TemplateComponentConnector.cs
- FrameworkContentElement.cs
- NamespaceList.cs
- TraceSource.cs
- ComplexObject.cs
- Clock.cs
- WebPartAuthorizationEventArgs.cs
- DataGridViewAccessibleObject.cs
- ContractReference.cs
- ReachVisualSerializer.cs