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
- QilParameter.cs
- sqlpipe.cs
- ActionFrame.cs
- Vector3DIndependentAnimationStorage.cs
- TreeNodeBinding.cs
- CopyOnWriteList.cs
- Size3DValueSerializer.cs
- MenuAdapter.cs
- HttpFormatExtensions.cs
- AssociationTypeEmitter.cs
- GenericEnumConverter.cs
- brushes.cs
- SystemSounds.cs
- NodeFunctions.cs
- InboundActivityHelper.cs
- PeerObject.cs
- mongolianshape.cs
- XMLUtil.cs
- BinarySerializer.cs
- ContentType.cs
- DbReferenceCollection.cs
- DynamicResourceExtensionConverter.cs
- JsonDeserializer.cs
- Rules.cs
- x509utils.cs
- WebPartEditorCancelVerb.cs
- ChtmlPhoneCallAdapter.cs
- XmlSchemaComplexContentRestriction.cs
- TimeSpan.cs
- Encoding.cs
- NonPrimarySelectionGlyph.cs
- Model3D.cs
- EntityFrameworkVersions.cs
- Timer.cs
- OleDbWrapper.cs
- NativeCppClassAttribute.cs
- WindowsGraphicsWrapper.cs
- NavigationWindow.cs
- GridViewCommandEventArgs.cs
- DataControlField.cs
- TextEffectResolver.cs
- ClientTargetSection.cs
- ServiceXNameTypeConverter.cs
- sqlmetadatafactory.cs
- ReachPageContentCollectionSerializerAsync.cs
- QueryAccessibilityHelpEvent.cs
- TextClipboardData.cs
- TextBoxAutoCompleteSourceConverter.cs
- SpeechEvent.cs
- peersecurityelement.cs
- LayeredChannelListener.cs
- TabletDeviceInfo.cs
- WorkingDirectoryEditor.cs
- DefaultValueTypeConverter.cs
- Errors.cs
- Int16.cs
- FormViewInsertEventArgs.cs
- WebPageTraceListener.cs
- ArraySortHelper.cs
- RequestQueryParser.cs
- HtmlContainerControl.cs
- ScrollChrome.cs
- DataServiceRequestOfT.cs
- XmlTextEncoder.cs
- PropertySegmentSerializer.cs
- RegexGroup.cs
- Span.cs
- DataGridPageChangedEventArgs.cs
- HttpRequest.cs
- EventHandlersStore.cs
- SimpleMailWebEventProvider.cs
- LinkLabel.cs
- DefaultSerializationProviderAttribute.cs
- XmlEnumAttribute.cs
- CompModSwitches.cs
- DocumentPageViewAutomationPeer.cs
- SharedPersonalizationStateInfo.cs
- ConfigXmlWhitespace.cs
- IconConverter.cs
- LabelDesigner.cs
- QueryStringParameter.cs
- XmlNamedNodeMap.cs
- BevelBitmapEffect.cs
- TextTreeTextNode.cs
- EventListener.cs
- Rfc2898DeriveBytes.cs
- Pair.cs
- StaticFileHandler.cs
- AddInControllerImpl.cs
- ComponentCommands.cs
- __TransparentProxy.cs
- XamlBuildTaskServices.cs
- AbsoluteQuery.cs
- BitmapEffectCollection.cs
- ConfigurationPropertyCollection.cs
- DirectoryObjectSecurity.cs
- BatchStream.cs
- Keywords.cs
- LinearKeyFrames.cs
- NullableConverter.cs