Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EmissiveMaterial.cs
- EdmScalarPropertyAttribute.cs
- MultiSelector.cs
- SourceFileInfo.cs
- ParseChildrenAsPropertiesAttribute.cs
- TraceSection.cs
- OpenTypeLayoutCache.cs
- PropertyValueUIItem.cs
- CounterCreationDataCollection.cs
- DbConnectionPool.cs
- QilXmlWriter.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- PageAsyncTask.cs
- SqlGenericUtil.cs
- SqlNodeTypeOperators.cs
- COM2IDispatchConverter.cs
- StyleBamlRecordReader.cs
- SqlCacheDependencySection.cs
- HighContrastHelper.cs
- complextypematerializer.cs
- PathTooLongException.cs
- RegionInfo.cs
- TreeNode.cs
- AvTraceFormat.cs
- OrElse.cs
- ControlAdapter.cs
- GridViewRowEventArgs.cs
- AdapterDictionary.cs
- LocalizationComments.cs
- CodeTypeReferenceCollection.cs
- PropertyRef.cs
- ContainerVisual.cs
- ProfileInfo.cs
- OrthographicCamera.cs
- RegisteredArrayDeclaration.cs
- AttributeQuery.cs
- EdmSchemaError.cs
- MsdtcWrapper.cs
- DataError.cs
- TranslateTransform.cs
- GeneralTransform.cs
- DateTimeParse.cs
- CollectionView.cs
- PenCursorManager.cs
- AsnEncodedData.cs
- TokenCreationException.cs
- TreeViewAutomationPeer.cs
- log.cs
- ScrollBar.cs
- Variable.cs
- TrustSection.cs
- DocumentViewerAutomationPeer.cs
- Stylus.cs
- Geometry3D.cs
- RegisteredHiddenField.cs
- QilUnary.cs
- TimelineClockCollection.cs
- DiffuseMaterial.cs
- InternalConfigRoot.cs
- LiteralSubsegment.cs
- BatchParser.cs
- ScriptingRoleServiceSection.cs
- EditorAttribute.cs
- ListViewUpdatedEventArgs.cs
- DataSysAttribute.cs
- WindowsSysHeader.cs
- OpenTypeLayoutCache.cs
- ExpressionDumper.cs
- RequestChannelBinder.cs
- AccessDataSourceDesigner.cs
- ListItemParagraph.cs
- PrintController.cs
- NumberFunctions.cs
- RuntimeIdentifierPropertyAttribute.cs
- ColumnResizeAdorner.cs
- errorpatternmatcher.cs
- TextPattern.cs
- KnownTypesProvider.cs
- SoapRpcMethodAttribute.cs
- HwndSubclass.cs
- HtmlElement.cs
- ImageInfo.cs
- DbMetaDataFactory.cs
- XmlCharType.cs
- TargetConverter.cs
- MsmqBindingBase.cs
- ExtractorMetadata.cs
- IntegerCollectionEditor.cs
- _TransmitFileOverlappedAsyncResult.cs
- RecordManager.cs
- PageClientProxyGenerator.cs
- HotSpotCollection.cs
- DataGridState.cs
- WebPartMovingEventArgs.cs
- GacUtil.cs
- WaitHandleCannotBeOpenedException.cs
- LineServicesRun.cs
- OleServicesContext.cs
- Rect.cs
- AssemblyAttributes.cs