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
- Compress.cs
- OuterGlowBitmapEffect.cs
- DocumentOrderQuery.cs
- TimeSpanFormat.cs
- TextTreeTextNode.cs
- Relationship.cs
- LogStore.cs
- Preprocessor.cs
- XmlDataDocument.cs
- MimePart.cs
- StateDesigner.CommentLayoutGlyph.cs
- TerminatorSinks.cs
- BlurEffect.cs
- GenericRootAutomationPeer.cs
- QilCloneVisitor.cs
- AlphaSortedEnumConverter.cs
- CodeMethodInvokeExpression.cs
- BuilderInfo.cs
- DesignTimeSiteMapProvider.cs
- XmlAnyAttributeAttribute.cs
- DataGridViewSelectedRowCollection.cs
- ListViewItemMouseHoverEvent.cs
- HtmlTableCell.cs
- ColorTranslator.cs
- DataGridViewHitTestInfo.cs
- DataListItemEventArgs.cs
- PreProcessor.cs
- ValueSerializer.cs
- RelatedView.cs
- Type.cs
- DesignerDeviceConfig.cs
- FrameSecurityDescriptor.cs
- KeyFrames.cs
- FtpCachePolicyElement.cs
- DoubleAnimationUsingKeyFrames.cs
- ADMembershipUser.cs
- ConfigXmlWhitespace.cs
- SwitchLevelAttribute.cs
- XmlMapping.cs
- TableStyle.cs
- EventManager.cs
- XmlSchemaSimpleType.cs
- CssTextWriter.cs
- ScriptHandlerFactory.cs
- FileSystemInfo.cs
- References.cs
- TemplateContentLoader.cs
- MailBnfHelper.cs
- TextServicesLoader.cs
- EdmSchemaAttribute.cs
- TreeNodeSelectionProcessor.cs
- StringValidatorAttribute.cs
- XmlFormatWriterGenerator.cs
- CompilerError.cs
- DbDataSourceEnumerator.cs
- EnumConverter.cs
- MDIClient.cs
- ServiceManager.cs
- HtmlForm.cs
- MultipleViewPattern.cs
- DrawingContextDrawingContextWalker.cs
- CodeObject.cs
- DocumentXmlWriter.cs
- RevocationPoint.cs
- _NestedSingleAsyncResult.cs
- DataSourceControl.cs
- SetterBaseCollection.cs
- PerformanceCounterPermissionEntryCollection.cs
- X500Name.cs
- FrameworkElementAutomationPeer.cs
- UpdateProgress.cs
- HtmlInputControl.cs
- FrameworkObject.cs
- UserMapPath.cs
- AttachInfo.cs
- MasterPage.cs
- StatusBarPanelClickEvent.cs
- MultiSelectRootGridEntry.cs
- ToolStripComboBox.cs
- BlockUIContainer.cs
- IntSecurity.cs
- HttpCapabilitiesSectionHandler.cs
- IDReferencePropertyAttribute.cs
- WindowsEditBox.cs
- ImmutableObjectAttribute.cs
- Options.cs
- ScriptManagerProxy.cs
- SqlRowUpdatedEvent.cs
- DocumentEventArgs.cs
- CodeCatchClauseCollection.cs
- XhtmlBasicControlAdapter.cs
- InfoCardKeyedHashAlgorithm.cs
- ObjectTag.cs
- CellLabel.cs
- EffectiveValueEntry.cs
- FixUp.cs
- Timer.cs
- StylusPlugin.cs
- ConstrainedDataObject.cs
- ChannelListenerBase.cs