Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / ui / UpdatePanelControlTrigger.cs / 2 / UpdatePanelControlTrigger.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.Resources; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal) ] public abstract class UpdatePanelControlTrigger : UpdatePanelTrigger { private string _controlID; protected UpdatePanelControlTrigger() { } [ Category("Behavior"), DefaultValue(""), IDReferenceProperty(), ResourceDescription("UpdatePanelControlTrigger_ControlID"), SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "ID") ] public string ControlID { get { return _controlID ?? String.Empty; } set { _controlID = value; } } protected Control FindTargetControl(bool searchNamingContainers) { if (String.IsNullOrEmpty(ControlID)) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.UpdatePanelControlTrigger_NoControlID, Owner.ID)); } Control foundControl = ControlUtil.FindTargetControl(ControlID, Owner, searchNamingContainers); if (foundControl == null) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.UpdatePanelControlTrigger_ControlNotFound, ControlID, Owner.ID)); } return foundControl; } } } // 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.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.Resources; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal) ] public abstract class UpdatePanelControlTrigger : UpdatePanelTrigger { private string _controlID; protected UpdatePanelControlTrigger() { } [ Category("Behavior"), DefaultValue(""), IDReferenceProperty(), ResourceDescription("UpdatePanelControlTrigger_ControlID"), SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "ID") ] public string ControlID { get { return _controlID ?? String.Empty; } set { _controlID = value; } } protected Control FindTargetControl(bool searchNamingContainers) { if (String.IsNullOrEmpty(ControlID)) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.UpdatePanelControlTrigger_NoControlID, Owner.ID)); } Control foundControl = ControlUtil.FindTargetControl(ControlID, Owner, searchNamingContainers); if (foundControl == null) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.UpdatePanelControlTrigger_ControlNotFound, ControlID, Owner.ID)); } return foundControl; } } } // 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
- GenerateTemporaryTargetAssembly.cs
- HttpErrorTraceRecord.cs
- BindingBase.cs
- DataContractJsonSerializerOperationBehavior.cs
- PowerStatus.cs
- NavigationExpr.cs
- IntranetCredentialPolicy.cs
- NavigationWindow.cs
- CommonEndpointBehaviorElement.cs
- XmlAnyElementAttribute.cs
- CalendarDataBindingHandler.cs
- PropertyToken.cs
- CodeObject.cs
- TextTreeInsertElementUndoUnit.cs
- Trace.cs
- TreeNodeMouseHoverEvent.cs
- OdbcStatementHandle.cs
- WebPartMovingEventArgs.cs
- XmlImplementation.cs
- SqlNodeAnnotation.cs
- TransformerTypeCollection.cs
- BitmapEffectGeneralTransform.cs
- MulticastOption.cs
- XmlSchemaSimpleContentRestriction.cs
- SectionInput.cs
- DataQuery.cs
- _ConnectStream.cs
- WindowsButton.cs
- MethodAccessException.cs
- Regex.cs
- StreamGeometry.cs
- DurableInstancingOptions.cs
- WorkflowMarkupSerializationException.cs
- SmuggledIUnknown.cs
- InstancePersistenceCommandException.cs
- SqlDataSourceView.cs
- SubpageParagraph.cs
- SettingsPropertyIsReadOnlyException.cs
- SchemaContext.cs
- InputLanguageProfileNotifySink.cs
- GraphicsPathIterator.cs
- WindowClosedEventArgs.cs
- SqlClientPermission.cs
- XsltOutput.cs
- ScriptServiceAttribute.cs
- ComboBoxRenderer.cs
- HttpCapabilitiesSectionHandler.cs
- PropertyConverter.cs
- SamlAuthorizationDecisionStatement.cs
- DesignerActionPropertyItem.cs
- UriTemplateHelpers.cs
- storepermissionattribute.cs
- TextOutput.cs
- ScriptManager.cs
- HandledEventArgs.cs
- BufferedStream.cs
- GroupBox.cs
- Pair.cs
- StandardCommandToolStripMenuItem.cs
- HttpAsyncResult.cs
- ReadContentAsBinaryHelper.cs
- IndependentAnimationStorage.cs
- Pipe.cs
- URIFormatException.cs
- BasicCellRelation.cs
- CallSiteHelpers.cs
- CustomDictionarySources.cs
- RemotingConfiguration.cs
- loginstatus.cs
- NotifyIcon.cs
- SqlBooleanizer.cs
- RoleManagerEventArgs.cs
- WebPartDisplayModeCollection.cs
- CodeDOMProvider.cs
- IdleTimeoutMonitor.cs
- XmlSchemaInclude.cs
- dataprotectionpermission.cs
- SqlComparer.cs
- MimeObjectFactory.cs
- AssemblyCache.cs
- WebPartVerb.cs
- TargetControlTypeAttribute.cs
- ScriptReferenceEventArgs.cs
- CheckedPointers.cs
- PingOptions.cs
- wpf-etw.cs
- MsmqAppDomainProtocolHandler.cs
- DataTable.cs
- ErrorProvider.cs
- KeyEvent.cs
- UniqueID.cs
- CaseInsensitiveHashCodeProvider.cs
- ParallelTimeline.cs
- InkCollectionBehavior.cs
- ListItem.cs
- CollectionEditor.cs
- connectionpool.cs
- TemplateKey.cs
- DaylightTime.cs
- SecurityRuntime.cs