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
- ResourceReferenceExpression.cs
- BuilderPropertyEntry.cs
- ControlBuilderAttribute.cs
- ArgumentValidation.cs
- DataSourceCache.cs
- GlyphingCache.cs
- DES.cs
- Baml2006KeyRecord.cs
- CompositeScriptReference.cs
- InfoCardSymmetricCrypto.cs
- SID.cs
- BackgroundFormatInfo.cs
- MessageEnumerator.cs
- HtmlTernaryTree.cs
- XmlKeywords.cs
- Transform.cs
- Instrumentation.cs
- CompensatableTransactionScopeActivityDesigner.cs
- RewritingSimplifier.cs
- TabPage.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- HWStack.cs
- EmptyElement.cs
- ObjectPropertyMapping.cs
- MethodToken.cs
- ObjectDataSourceMethodEventArgs.cs
- MobileControlPersister.cs
- BindingGroup.cs
- StoreUtilities.cs
- SqlError.cs
- Source.cs
- XmlStreamStore.cs
- CollectionContainer.cs
- HitTestWithGeometryDrawingContextWalker.cs
- CompilerResults.cs
- MenuStrip.cs
- InkCanvasSelection.cs
- FixedPageStructure.cs
- LayoutDump.cs
- ExpressionEditorAttribute.cs
- InvokeHandlers.cs
- MdImport.cs
- RtfFormatStack.cs
- SqlBuffer.cs
- RadioButtonPopupAdapter.cs
- Sentence.cs
- _SpnDictionary.cs
- RijndaelManagedTransform.cs
- TextParaClient.cs
- ArgIterator.cs
- RoutedUICommand.cs
- ModulesEntry.cs
- SerializationInfoEnumerator.cs
- MimeMapping.cs
- MouseGestureConverter.cs
- securitymgrsite.cs
- StandardCommands.cs
- BitmapEncoder.cs
- SystemIcons.cs
- ImageMap.cs
- PtsContext.cs
- RectangleHotSpot.cs
- AssemblyBuilder.cs
- XmlNodeChangedEventManager.cs
- CacheChildrenQuery.cs
- TrackingParticipant.cs
- HttpCookiesSection.cs
- AtomServiceDocumentSerializer.cs
- DropSource.cs
- ConfigurationSectionHelper.cs
- PropertyInformationCollection.cs
- FormViewCommandEventArgs.cs
- NativeCppClassAttribute.cs
- FileDialog_Vista.cs
- ShapingEngine.cs
- DataGridViewLinkCell.cs
- RNGCryptoServiceProvider.cs
- TextAutomationPeer.cs
- Scene3D.cs
- TableParagraph.cs
- AutoResetEvent.cs
- TemplateModeChangedEventArgs.cs
- SafeRightsManagementSessionHandle.cs
- LayoutEditorPart.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ControlEvent.cs
- SymbolTable.cs
- DrawTreeNodeEventArgs.cs
- ListControlConvertEventArgs.cs
- CodeNamespace.cs
- DecoderExceptionFallback.cs
- ListMarkerSourceInfo.cs
- DisposableCollectionWrapper.cs
- RemoteWebConfigurationHostServer.cs
- ControlDesigner.cs
- HttpApplication.cs
- RuntimeConfigLKG.cs
- DataGridDetailsPresenterAutomationPeer.cs
- RawStylusActions.cs
- AttributeEmitter.cs