Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / UpdatePanelControlTrigger.cs / 1 / 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
- TimelineGroup.cs
- Expression.cs
- GatewayDefinition.cs
- wmiprovider.cs
- WindowsListView.cs
- Debugger.cs
- ChildDocumentBlock.cs
- DataGridViewCellStateChangedEventArgs.cs
- PriorityQueue.cs
- ResourceWriter.cs
- StreamGeometry.cs
- userdatakeys.cs
- SharedPerformanceCounter.cs
- FontStretches.cs
- InheritedPropertyChangedEventArgs.cs
- DefaultTraceListener.cs
- OpCellTreeNode.cs
- IndividualDeviceConfig.cs
- RefreshResponseInfo.cs
- CreatingCookieEventArgs.cs
- InputProcessorProfiles.cs
- BitmapEffectState.cs
- ListBox.cs
- PipelineModuleStepContainer.cs
- ProfileInfo.cs
- DebugViewWriter.cs
- DynamicPropertyReader.cs
- TransportBindingElementImporter.cs
- WebPartPersonalization.cs
- ProcessHostConfigUtils.cs
- NumericExpr.cs
- ValueSerializer.cs
- DodSequenceMerge.cs
- TemplateBindingExtension.cs
- PolygonHotSpot.cs
- HtmlInputControl.cs
- DesignerHost.cs
- Table.cs
- TemplateControl.cs
- PersonalizationStateQuery.cs
- LogReservationCollection.cs
- TextSearch.cs
- WorkflowRuntimeServiceElementCollection.cs
- RowSpanVector.cs
- DataGridColumnHeaderCollection.cs
- AttachmentCollection.cs
- InheritablePropertyChangeInfo.cs
- RenderingEventArgs.cs
- DependencyPropertyConverter.cs
- XMLDiffLoader.cs
- PartialToken.cs
- ClockGroup.cs
- XmlProcessingInstruction.cs
- XmlSchemaNotation.cs
- DelimitedListTraceListener.cs
- TransactionScope.cs
- TextEditorMouse.cs
- GridViewRowPresenterBase.cs
- Transactions.cs
- GroupStyle.cs
- EncodingNLS.cs
- DropShadowEffect.cs
- ipaddressinformationcollection.cs
- SerializationObjectManager.cs
- WindowVisualStateTracker.cs
- TextHintingModeValidation.cs
- FrameworkTemplate.cs
- HwndSourceParameters.cs
- CleanUpVirtualizedItemEventArgs.cs
- DataGridViewButtonColumn.cs
- Lasso.cs
- TextEffect.cs
- CultureSpecificStringDictionary.cs
- WindowsScrollBarBits.cs
- Normalizer.cs
- ReversePositionQuery.cs
- COM2TypeInfoProcessor.cs
- Assert.cs
- UnicodeEncoding.cs
- XPathNodeInfoAtom.cs
- Font.cs
- TableLayout.cs
- Visitor.cs
- CryptoApi.cs
- BinaryConverter.cs
- SQLInt32Storage.cs
- HandlerMappingMemo.cs
- BasicKeyConstraint.cs
- ToolStripAdornerWindowService.cs
- Event.cs
- DataKeyArray.cs
- CardSpaceSelector.cs
- TreeNodeEventArgs.cs
- SqlParameterCollection.cs
- DesigntimeLicenseContextSerializer.cs
- ModelPerspective.cs
- SqlUserDefinedAggregateAttribute.cs
- SafeReversePInvokeHandle.cs
- XhtmlBasicTextViewAdapter.cs
- HwndMouseInputProvider.cs