Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / RegisteredScript.cs / 1 / RegisteredScript.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Security.Permissions; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), ] public sealed class RegisteredScript { private RegisteredScriptType _scriptType; private Control _control; private string _key; private string _script; private Type _type; private bool _addScriptTags; private string _url; internal RegisteredScript(Control control, Type type, string key, string url) { Debug.Assert(control != null); Debug.Assert(type != null); Debug.Assert(!String.IsNullOrEmpty(url)); // null and empty "key" are treated different by asp.net script duplicate detection so null is allowed. _scriptType = RegisteredScriptType.ClientScriptInclude; _control = control; _type = type; _key = key; _url = url; } internal RegisteredScript(RegisteredScriptType scriptType, Control control, Type type, string key, string script, bool addScriptTags) { Debug.Assert(control != null); Debug.Assert( scriptType != RegisteredScriptType.OnSubmitStatement || !addScriptTags, "OnSubmitStatements cannot have addScriptTags."); Debug.Assert(type != null); // null and empty "key" are treated different by asp.net script duplicate detection so null is allowed. // null script allowed _scriptType = scriptType; _control = control; _type = type; _key = key; _script = script; _addScriptTags = addScriptTags; } public bool AddScriptTags { get { return _addScriptTags; } } public Control Control { get { return _control; } } public string Key { get { // may be null return _key; } } public string Script { get { // may be null return _script; } } public RegisteredScriptType ScriptType { get { return _scriptType; } } public Type Type { get { return _type; } } [SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Justification = "Consistent with RegisterClientScriptInclude.")] public string Url { get { // null if this is not a client script include or resource return _url; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReferentialConstraint.cs
- coordinatorscratchpad.cs
- input.cs
- NetCodeGroup.cs
- SqlClientWrapperSmiStreamChars.cs
- ServiceAuthorizationBehavior.cs
- WindowPatternIdentifiers.cs
- ParameterReplacerVisitor.cs
- TreeView.cs
- SharingService.cs
- StaticExtension.cs
- TypeValidationEventArgs.cs
- SiteMapNodeItem.cs
- EdmValidator.cs
- ConfigurationSectionGroup.cs
- AuthenticationService.cs
- TypePropertyEditor.cs
- BrowserTree.cs
- BitmapPalettes.cs
- PointCollectionValueSerializer.cs
- DeclaredTypeValidatorAttribute.cs
- _SSPISessionCache.cs
- ObjectDataSourceDisposingEventArgs.cs
- HttpServerUtilityBase.cs
- WindowsListBox.cs
- autovalidator.cs
- ClientTargetCollection.cs
- BaseServiceProvider.cs
- DefaultProxySection.cs
- DataRow.cs
- WindowsToolbarItemAsMenuItem.cs
- Int16KeyFrameCollection.cs
- Rotation3DAnimationUsingKeyFrames.cs
- AudioFileOut.cs
- DiscoveryDocumentSearchPattern.cs
- StringToken.cs
- DataGridViewCellFormattingEventArgs.cs
- DataTablePropertyDescriptor.cs
- DataPager.cs
- ValueOfAction.cs
- SqlTriggerAttribute.cs
- AffineTransform3D.cs
- FileLevelControlBuilderAttribute.cs
- MasterPage.cs
- TextBox.cs
- ListSortDescription.cs
- Script.cs
- BuildResultCache.cs
- InputLanguageCollection.cs
- WebBaseEventKeyComparer.cs
- GeometryModel3D.cs
- ExtentKey.cs
- TrustLevel.cs
- MenuAdapter.cs
- Interlocked.cs
- PageVisual.cs
- Columns.cs
- SimpleNameService.cs
- MenuAutoFormat.cs
- Vector.cs
- Solver.cs
- CodeIndexerExpression.cs
- VirtualizedItemProviderWrapper.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TableItemProviderWrapper.cs
- SignatureDescription.cs
- ShaderRenderModeValidation.cs
- ExtenderProvidedPropertyAttribute.cs
- VariableModifiersHelper.cs
- PropertyGeneratedEventArgs.cs
- RegexGroupCollection.cs
- ProcessHostMapPath.cs
- DynamicResourceExtension.cs
- RadioButtonList.cs
- CodeMemberProperty.cs
- CaseInsensitiveHashCodeProvider.cs
- SystemWebSectionGroup.cs
- SessionParameter.cs
- XPathNode.cs
- ListViewDataItem.cs
- TableLayoutPanelResizeGlyph.cs
- InheritanceContextChangedEventManager.cs
- HashMembershipCondition.cs
- TextRangeSerialization.cs
- SafeHGlobalHandleCritical.cs
- _ProxyChain.cs
- BaseParaClient.cs
- EventLogEntryCollection.cs
- GeneralTransform.cs
- BCLDebug.cs
- ApplicationFileParser.cs
- ScriptReferenceEventArgs.cs
- TextServicesProperty.cs
- ContextMarshalException.cs
- DistinctQueryOperator.cs
- TreeNodeMouseHoverEvent.cs
- PropertyGroupDescription.cs
- DBBindings.cs
- LinearKeyFrames.cs
- UnauthorizedAccessException.cs