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
- DataControlFieldHeaderCell.cs
- X509InitiatorCertificateServiceElement.cs
- Processor.cs
- BaseResourcesBuildProvider.cs
- OleDbReferenceCollection.cs
- CellTreeSimplifier.cs
- LineGeometry.cs
- Freezable.cs
- AxDesigner.cs
- Stackframe.cs
- CharAnimationBase.cs
- SafeWaitHandle.cs
- DelayedRegex.cs
- AnnotationDocumentPaginator.cs
- SinglePageViewer.cs
- GroupItemAutomationPeer.cs
- ServiceEndpointCollection.cs
- HttpContextWrapper.cs
- ZoneButton.cs
- SerializerDescriptor.cs
- AuthenticationManager.cs
- _StreamFramer.cs
- HiddenField.cs
- SelectionEditingBehavior.cs
- ProviderConnectionPointCollection.cs
- StrokeCollectionDefaultValueFactory.cs
- CellQuery.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- TypeUtils.cs
- MessageDecoder.cs
- SQLDateTimeStorage.cs
- ObjectTag.cs
- AllowedAudienceUriElementCollection.cs
- ITreeGenerator.cs
- WorkflowViewManager.cs
- PersistChildrenAttribute.cs
- FormViewDesigner.cs
- Decoder.cs
- EventWaitHandleSecurity.cs
- GroupBox.cs
- XmlStrings.cs
- MouseGestureValueSerializer.cs
- WebException.cs
- NetworkInterface.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- ElasticEase.cs
- ExpressionVisitor.cs
- ButtonColumn.cs
- SpellerError.cs
- DataControlImageButton.cs
- ConfigXmlElement.cs
- PolyLineSegment.cs
- WebPartsSection.cs
- HttpContextServiceHost.cs
- RouteValueDictionary.cs
- keycontainerpermission.cs
- NamedPipeTransportSecurity.cs
- DbDataAdapter.cs
- DataGridToolTip.cs
- MdiWindowListStrip.cs
- ObjectPersistData.cs
- VerificationException.cs
- Thread.cs
- Calendar.cs
- LayoutUtils.cs
- NavigationEventArgs.cs
- WebPartEventArgs.cs
- RuleSetReference.cs
- StorageComplexTypeMapping.cs
- ThicknessConverter.cs
- SessionEndingEventArgs.cs
- OperationAbortedException.cs
- SqlCacheDependencyDatabaseCollection.cs
- PlanCompilerUtil.cs
- WCFBuildProvider.cs
- Throw.cs
- WebScriptEnablingBehavior.cs
- Utilities.cs
- PartitionedDataSource.cs
- FlowDocumentReader.cs
- BitmapEffect.cs
- ValidatedControlConverter.cs
- XPathDescendantIterator.cs
- Rfc2898DeriveBytes.cs
- ServiceThrottlingElement.cs
- StateMachineExecutionState.cs
- PolicyValidationException.cs
- XmlIlVisitor.cs
- CodeGenerator.cs
- CommandManager.cs
- SettingsContext.cs
- PieceDirectory.cs
- InternalsVisibleToAttribute.cs
- SoapProcessingBehavior.cs
- CalendarItem.cs
- TableRowCollection.cs
- CursorConverter.cs
- IConvertible.cs
- AnimationClockResource.cs
- NumericUpDown.cs