Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CompiledRegexRunner.cs
- XmlSchemaParticle.cs
- UnsafeNativeMethods.cs
- LocalizableResourceBuilder.cs
- ToolStripProgressBar.cs
- PieceDirectory.cs
- DefaultMergeHelper.cs
- SizeLimitedCache.cs
- BuilderInfo.cs
- EntityType.cs
- XPathPatternBuilder.cs
- ChainOfResponsibility.cs
- TemplateApplicationHelper.cs
- ObjectDataSourceEventArgs.cs
- GetMemberBinder.cs
- CacheManager.cs
- Switch.cs
- cache.cs
- UIElementIsland.cs
- Calendar.cs
- DisplayInformation.cs
- HorizontalAlignConverter.cs
- Base64WriteStateInfo.cs
- SystemInfo.cs
- DbDataRecord.cs
- ProxyGenerator.cs
- IdnMapping.cs
- HashJoinQueryOperatorEnumerator.cs
- ListViewGroupItemCollection.cs
- SendContent.cs
- CreateParams.cs
- BindingContext.cs
- DataGridViewCellFormattingEventArgs.cs
- CanonicalFontFamilyReference.cs
- X509Utils.cs
- CapabilitiesPattern.cs
- SafeCryptoHandles.cs
- RequestBringIntoViewEventArgs.cs
- ReadOnlyNameValueCollection.cs
- DefaultClaimSet.cs
- DataPagerFieldItem.cs
- EventProviderClassic.cs
- COMException.cs
- FaultPropagationRecord.cs
- TextMetrics.cs
- PropertyTab.cs
- TdsValueSetter.cs
- ProviderMetadataCachedInformation.cs
- GridViewSelectEventArgs.cs
- xmlfixedPageInfo.cs
- MethodExpression.cs
- WCFModelStrings.Designer.cs
- documentsequencetextpointer.cs
- SurrogateEncoder.cs
- FontStretchConverter.cs
- ParserHooks.cs
- DataBoundControl.cs
- BoundPropertyEntry.cs
- SafeHandles.cs
- TextEndOfParagraph.cs
- SqlParameter.cs
- ParsedAttributeCollection.cs
- SpeakCompletedEventArgs.cs
- ListChangedEventArgs.cs
- ProxyWebPartManager.cs
- SqlDataSourceRefreshSchemaForm.cs
- ResourceReferenceExpression.cs
- DataControlFieldCell.cs
- ExpressionCopier.cs
- Convert.cs
- KoreanLunisolarCalendar.cs
- UpdateCommand.cs
- CommunicationObjectAbortedException.cs
- UIPropertyMetadata.cs
- MappingException.cs
- CheckBox.cs
- GlobalEventManager.cs
- StylusLogic.cs
- VirtualPathProvider.cs
- QilFactory.cs
- XmlSchemaSimpleTypeList.cs
- TextTreeInsertElementUndoUnit.cs
- WmlTextViewAdapter.cs
- ToolStripStatusLabel.cs
- SqlBooleanMismatchVisitor.cs
- CookielessHelper.cs
- DataGridViewCellEventArgs.cs
- SharedUtils.cs
- Pen.cs
- DecoderExceptionFallback.cs
- KnownBoxes.cs
- TextServicesPropertyRanges.cs
- ResourceFallbackManager.cs
- TextWriter.cs
- RegexEditorDialog.cs
- LinqDataSourceDeleteEventArgs.cs
- RootBrowserWindow.cs
- ConfigurationErrorsException.cs
- ExtendedPropertyInfo.cs
- BaseWebProxyFinder.cs