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
- DbCommandTree.cs
- CatalogPart.cs
- MenuItem.cs
- DefaultBinder.cs
- NullableDoubleSumAggregationOperator.cs
- SecureUICommand.cs
- Byte.cs
- GradientStop.cs
- PenThread.cs
- ColumnWidthChangedEvent.cs
- AutoGeneratedFieldProperties.cs
- FrameworkElementFactory.cs
- NestPullup.cs
- CodeDOMProvider.cs
- PageParser.cs
- WeakEventTable.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- DataSysAttribute.cs
- SizeChangedInfo.cs
- versioninfo.cs
- ToolStripButton.cs
- SocketCache.cs
- FamilyTypeface.cs
- DataSource.cs
- MenuScrollingVisibilityConverter.cs
- SqlProcedureAttribute.cs
- EventSinkHelperWriter.cs
- FileFormatException.cs
- RSAOAEPKeyExchangeFormatter.cs
- Rules.cs
- SqlAggregateChecker.cs
- KerberosSecurityTokenAuthenticator.cs
- AQNBuilder.cs
- ToolboxItem.cs
- ExpressionEditorAttribute.cs
- CodeSnippetTypeMember.cs
- ObjectQueryState.cs
- DesignerValidationSummaryAdapter.cs
- FrameworkContextData.cs
- DynamicResourceExtensionConverter.cs
- SqlDataSourceCache.cs
- HiddenFieldDesigner.cs
- SqlParameter.cs
- HtmlControlPersistable.cs
- SendActivity.cs
- ImageConverter.cs
- ProtocolReflector.cs
- CdpEqualityComparer.cs
- SynchronizingStream.cs
- MethodRental.cs
- HtmlForm.cs
- Propagator.cs
- PaintValueEventArgs.cs
- DbMetaDataFactory.cs
- Task.cs
- SpeakInfo.cs
- ContentPropertyAttribute.cs
- sqlstateclientmanager.cs
- DynamicDataResources.Designer.cs
- DataGridState.cs
- ZipQueryOperator.cs
- TypeHelper.cs
- PointKeyFrameCollection.cs
- TemporaryBitmapFile.cs
- ToolStripDropDownClosedEventArgs.cs
- SessionStateModule.cs
- BaseProcessor.cs
- PropertyItemInternal.cs
- DataSetMappper.cs
- ArrangedElement.cs
- Type.cs
- DesignerActionUIStateChangeEventArgs.cs
- BitmapEffectInputConnector.cs
- ImageIndexEditor.cs
- SecondaryIndexList.cs
- RevocationPoint.cs
- RenderTargetBitmap.cs
- XmlSerializationReader.cs
- FontDialog.cs
- FileSystemWatcher.cs
- ZoneButton.cs
- SqlColumnizer.cs
- AnnouncementEventArgs.cs
- InfoCardSymmetricAlgorithm.cs
- UpDownBase.cs
- DesignerToolboxInfo.cs
- ContextMarshalException.cs
- PathBox.cs
- CommandDevice.cs
- CollectionMarkupSerializer.cs
- SocketInformation.cs
- ColumnTypeConverter.cs
- AmbientProperties.cs
- Win32NamedPipes.cs
- ActivityDesignerAccessibleObject.cs
- FileUtil.cs
- Pkcs7Signer.cs
- mediaclock.cs
- OleCmdHelper.cs
- WebPartDisplayMode.cs