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
- CodeGroup.cs
- InputManager.cs
- GetWorkflowTree.cs
- BooleanExpr.cs
- HealthMonitoringSection.cs
- ComPlusAuthorization.cs
- WindowsRichEditRange.cs
- DataColumnChangeEvent.cs
- SparseMemoryStream.cs
- GifBitmapEncoder.cs
- ReflectionPermission.cs
- DataServiceRequestArgs.cs
- SafeEventLogReadHandle.cs
- BamlRecordReader.cs
- Directory.cs
- Query.cs
- XsltArgumentList.cs
- System.Data.OracleClient_BID.cs
- ValueQuery.cs
- HtmlInputFile.cs
- StaticSiteMapProvider.cs
- DataGridViewComboBoxCell.cs
- BuildProviderAppliesToAttribute.cs
- StorageComplexPropertyMapping.cs
- FileRegion.cs
- PersonalizationAdministration.cs
- DataBinder.cs
- PDBReader.cs
- SmiEventStream.cs
- ObjectListCommandEventArgs.cs
- DesignTimeVisibleAttribute.cs
- HMACSHA384.cs
- FigureHelper.cs
- TextProviderWrapper.cs
- WindowsTreeView.cs
- ReadOnlyMetadataCollection.cs
- DataGridRowEventArgs.cs
- SplitterEvent.cs
- COM2IProvidePropertyBuilderHandler.cs
- MailMessage.cs
- EntityType.cs
- ListViewInsertEventArgs.cs
- DocumentOrderComparer.cs
- ErrorTableItemStyle.cs
- ScriptResourceInfo.cs
- WindowsListViewItemStartMenu.cs
- CacheForPrimitiveTypes.cs
- ScriptComponentDescriptor.cs
- Context.cs
- FlowNode.cs
- IndentedWriter.cs
- Bits.cs
- MultipartContentParser.cs
- TrustSection.cs
- ProfileServiceManager.cs
- CngProperty.cs
- ConfigsHelper.cs
- StandardToolWindows.cs
- LinkArea.cs
- SmiConnection.cs
- ControlPropertyNameConverter.cs
- CollectionConverter.cs
- PlanCompiler.cs
- WorkflowTransactionOptions.cs
- CommandBindingCollection.cs
- SchemaConstraints.cs
- DataGridViewSortCompareEventArgs.cs
- InternalException.cs
- JoinElimination.cs
- MulticastOption.cs
- CodeAttributeDeclarationCollection.cs
- RightsManagementPermission.cs
- _HelperAsyncResults.cs
- ProxyGenerationError.cs
- KnownIds.cs
- AnimationTimeline.cs
- SiteMapNodeItemEventArgs.cs
- ActivatableWorkflowsQueryResult.cs
- _DomainName.cs
- DataPagerField.cs
- JoinGraph.cs
- FileDialog_Vista.cs
- keycontainerpermission.cs
- AuthenticationServiceManager.cs
- WMIGenerator.cs
- PackWebResponse.cs
- XmlCustomFormatter.cs
- TileModeValidation.cs
- ContentAlignmentEditor.cs
- ToolStripMenuItemCodeDomSerializer.cs
- BuilderPropertyEntry.cs
- CodeSubDirectory.cs
- ModelTreeEnumerator.cs
- DataStreams.cs
- RegisteredArrayDeclaration.cs
- WindowsToolbarAsMenu.cs
- CollectionDataContractAttribute.cs
- TextOptions.cs
- ConfigXmlElement.cs
- JsonSerializer.cs