Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / UpdatePanelControlTrigger.cs / 1305376 / 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.Web; using System.Web.UI; using System.Web.Resources; 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.Web; using System.Web.UI; using System.Web.Resources; 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
- SystemWebCachingSectionGroup.cs
- NameTable.cs
- DataBinding.cs
- VarRefManager.cs
- QilUnary.cs
- DataStreams.cs
- ManagedWndProcTracker.cs
- SoapAttributes.cs
- HitTestResult.cs
- Cursor.cs
- TableLayout.cs
- GlobalItem.cs
- ComAwareEventInfo.cs
- SqlStatistics.cs
- XPathQilFactory.cs
- CharacterShapingProperties.cs
- DataControlFieldCollection.cs
- Merger.cs
- FreezableCollection.cs
- DesignerToolStripControlHost.cs
- CssTextWriter.cs
- WindowsListBox.cs
- SplashScreenNativeMethods.cs
- ScopelessEnumAttribute.cs
- _BufferOffsetSize.cs
- BaseInfoTable.cs
- NotifyParentPropertyAttribute.cs
- WindowsAltTab.cs
- ElementProxy.cs
- URL.cs
- InstalledFontCollection.cs
- SqlGatherProducedAliases.cs
- LayoutEvent.cs
- MatrixUtil.cs
- NamespaceDecl.cs
- ConstraintCollection.cs
- RuntimeHandles.cs
- IisTraceListener.cs
- DataRowComparer.cs
- EditorPartCollection.cs
- SmtpFailedRecipientsException.cs
- CatalogPartChrome.cs
- _BaseOverlappedAsyncResult.cs
- backend.cs
- XsdDuration.cs
- UnmanagedBitmapWrapper.cs
- ToolStripRendererSwitcher.cs
- LineBreak.cs
- HtmlInputRadioButton.cs
- Condition.cs
- ProxyGenerator.cs
- Rules.cs
- ScrollItemProviderWrapper.cs
- KeyManager.cs
- UnionCqlBlock.cs
- TreeViewHitTestInfo.cs
- httpstaticobjectscollection.cs
- Propagator.ExtentPlaceholderCreator.cs
- WebCategoryAttribute.cs
- InstanceLockedException.cs
- _CacheStreams.cs
- TransformerTypeCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- NameValueFileSectionHandler.cs
- ComplusTypeValidator.cs
- MultipartContentParser.cs
- BitmapMetadata.cs
- UTF7Encoding.cs
- TextServicesManager.cs
- XmlSchemaImport.cs
- ProviderBase.cs
- SerialStream.cs
- WindowsEditBoxRange.cs
- QueryContinueDragEvent.cs
- SpeechRecognizer.cs
- EntityProxyFactory.cs
- LinqDataSourceSelectEventArgs.cs
- SqlUserDefinedTypeAttribute.cs
- HelpOperationInvoker.cs
- KnownTypesProvider.cs
- HostVisual.cs
- ClrProviderManifest.cs
- DataGrid.cs
- CompiledELinqQueryState.cs
- Overlapped.cs
- DataGridHeaderBorder.cs
- _NtlmClient.cs
- EdmFunction.cs
- CommandValueSerializer.cs
- Variable.cs
- _ScatterGatherBuffers.cs
- FrameworkName.cs
- ResourceAssociationType.cs
- Point3DCollectionConverter.cs
- ControlAdapter.cs
- _SecureChannel.cs
- ValidationResult.cs
- NativeMethodsOther.cs
- ControlPaint.cs
- TransformDescriptor.cs