Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- VariableQuery.cs
- SimplePropertyEntry.cs
- TableCellCollection.cs
- GenericArgumentsUpdater.cs
- GeometryHitTestResult.cs
- FileDetails.cs
- GridViewColumnCollectionChangedEventArgs.cs
- CryptoApi.cs
- ScriptReferenceBase.cs
- MaterialGroup.cs
- ImageSourceValueSerializer.cs
- OutOfProcStateClientManager.cs
- HtmlTableCellCollection.cs
- SchemeSettingElement.cs
- SystemKeyConverter.cs
- EnvironmentPermission.cs
- SmiGettersStream.cs
- DirectoryObjectSecurity.cs
- WebConfigurationHost.cs
- WorkflowInstanceRecord.cs
- Viewport3DAutomationPeer.cs
- DefaultTextStore.cs
- SetStoryboardSpeedRatio.cs
- DirectoryRedirect.cs
- IntegerFacetDescriptionElement.cs
- ImmutableObjectAttribute.cs
- ChildTable.cs
- BrowserDefinitionCollection.cs
- AlphaSortedEnumConverter.cs
- BamlCollectionHolder.cs
- TextEndOfSegment.cs
- XmlIgnoreAttribute.cs
- Rethrow.cs
- ButtonStandardAdapter.cs
- BasePropertyDescriptor.cs
- DataSourceCache.cs
- SchemaComplexType.cs
- DiscoveryVersion.cs
- DataGridState.cs
- DataDocumentXPathNavigator.cs
- XmlQueryType.cs
- LayoutUtils.cs
- StrongNameKeyPair.cs
- DataTableTypeConverter.cs
- XmlSchemaChoice.cs
- CodeTypeReference.cs
- DomainConstraint.cs
- Span.cs
- SurrogateChar.cs
- HMACSHA256.cs
- Stackframe.cs
- CookielessHelper.cs
- HeaderCollection.cs
- Part.cs
- PaperSize.cs
- EmbeddedMailObjectCollectionEditor.cs
- SQLSingleStorage.cs
- ValidatingPropertiesEventArgs.cs
- Transform.cs
- InputScope.cs
- TraceContext.cs
- MSAAWinEventWrap.cs
- QilGenerator.cs
- ScriptManager.cs
- SafeWaitHandle.cs
- WebCategoryAttribute.cs
- Pair.cs
- QuerySelectOp.cs
- EncoderExceptionFallback.cs
- PreservationFileReader.cs
- HtmlEncodedRawTextWriter.cs
- DocumentReference.cs
- SocketPermission.cs
- TlsSspiNegotiation.cs
- BindingList.cs
- WebReferenceCollection.cs
- _AcceptOverlappedAsyncResult.cs
- EventLogEntryCollection.cs
- UpDownBaseDesigner.cs
- AliasExpr.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- PageCodeDomTreeGenerator.cs
- VBCodeProvider.cs
- TemplateControlCodeDomTreeGenerator.cs
- ReferencedType.cs
- EventManager.cs
- RadioButtonRenderer.cs
- SqlDataReaderSmi.cs
- PolicyStatement.cs
- TrailingSpaceComparer.cs
- DeclaredTypeValidator.cs
- HtmlGenericControl.cs
- SqlEnums.cs
- ExpressionParser.cs
- DateTimeUtil.cs
- ConfigurationSectionGroup.cs
- DefaultAsyncDataDispatcher.cs
- InstanceNameConverter.cs
- CustomError.cs
- AnnotationMap.cs