Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / FormParameter.cs / 1 / FormParameter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Security.Permissions; ////// Represents a Parameter that gets its value from the application's form parameters. /// [ DefaultProperty("FormField"), ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class FormParameter : Parameter { ////// Creates an instance of the FormParameter class. /// public FormParameter() { } ////// Creates an instance of the FormParameter class with the specified parameter name and form field. /// public FormParameter(string name, string formField) : base(name) { FormField = formField; } ////// Creates an instance of the FormParameter class with the specified parameter name, type, and form field. /// public FormParameter(string name, TypeCode type, string formField) : base(name, type) { FormField = formField; } ////// Used to clone a parameter. /// protected FormParameter(FormParameter original) : base(original) { FormField = original.FormField; } ////// The name of the form parameter to get the value from. /// [ DefaultValue(""), WebCategory("Parameter"), WebSysDescription(SR.FormParameter_FormField), ] public string FormField { get { object o = ViewState["FormField"]; if (o == null) return String.Empty; return (string)o; } set { if (FormField != value) { ViewState["FormField"] = value; OnParameterChanged(); } } } ////// Creates a new FormParameter that is a copy of this FormParameter. /// protected override Parameter Clone() { return new FormParameter(this); } ////// Returns the updated value of the parameter. /// protected override object Evaluate(HttpContext context, Control control) { if (context == null || context.Request == null) { return null; } return context.Request.Form[FormField]; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DelegatingTypeDescriptionProvider.cs
- TimeSpan.cs
- ObjectStorage.cs
- WebReferencesBuildProvider.cs
- SspiHelper.cs
- SmtpReplyReader.cs
- ButtonPopupAdapter.cs
- SemanticKeyElement.cs
- ChangeTracker.cs
- ConstraintManager.cs
- FaultDescriptionCollection.cs
- AnonymousIdentificationModule.cs
- SafeHandle.cs
- UIElementIsland.cs
- BitmapImage.cs
- ButtonRenderer.cs
- ComponentChangingEvent.cs
- ConnectionOrientedTransportElement.cs
- ErrorInfoXmlDocument.cs
- DataGridDesigner.cs
- UidManager.cs
- Events.cs
- EdmItemError.cs
- ServiceHostFactory.cs
- MailSettingsSection.cs
- TemplateBindingExpressionConverter.cs
- Keywords.cs
- TextBoxBase.cs
- SchemaImporter.cs
- UnsettableComboBox.cs
- DataSourceHelper.cs
- XamlClipboardData.cs
- CheckBoxAutomationPeer.cs
- OracleConnection.cs
- DPTypeDescriptorContext.cs
- XamlTreeBuilder.cs
- TCEAdapterGenerator.cs
- AttributeCollection.cs
- DateTimeConverter.cs
- TrimSurroundingWhitespaceAttribute.cs
- DbReferenceCollection.cs
- MessageQueuePermissionEntry.cs
- SqlHelper.cs
- DictionaryCustomTypeDescriptor.cs
- Speller.cs
- SHA384.cs
- TrackPointCollection.cs
- StringDictionaryEditor.cs
- StylusSystemGestureEventArgs.cs
- DynamicControl.cs
- MsdtcClusterUtils.cs
- PackageFilter.cs
- HttpFormatExtensions.cs
- SQLGuidStorage.cs
- SslSecurityTokenParameters.cs
- LinqExpressionNormalizer.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- UIPermission.cs
- CustomWebEventKey.cs
- TextEffect.cs
- XmlComplianceUtil.cs
- ProcessHost.cs
- MessagePropertyDescription.cs
- SoapSchemaExporter.cs
- ListViewItemEventArgs.cs
- HyperLinkStyle.cs
- GlobalProxySelection.cs
- XmlSchemaAttribute.cs
- WinInetCache.cs
- QilXmlReader.cs
- Point3DIndependentAnimationStorage.cs
- WebServiceBindingAttribute.cs
- SqlProfileProvider.cs
- _DigestClient.cs
- DataError.cs
- DocumentPage.cs
- MobileSysDescriptionAttribute.cs
- ConstraintConverter.cs
- PreProcessor.cs
- NavigatorInput.cs
- HttpClientCertificate.cs
- ItemMap.cs
- WhitespaceRuleLookup.cs
- InheritanceService.cs
- UrlMappingsModule.cs
- SkipStoryboardToFill.cs
- ResourceContainer.cs
- RowsCopiedEventArgs.cs
- ProxySimple.cs
- ObjectItemCollection.cs
- DataViewSettingCollection.cs
- RegexMatchCollection.cs
- DeviceContexts.cs
- IgnoreDataMemberAttribute.cs
- InvokerUtil.cs
- DispatcherFrame.cs
- EntitySet.cs
- Bidi.cs
- PauseStoryboard.cs
- TextSimpleMarkerProperties.cs