Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / QueryStringParameter.cs / 1305376 / QueryStringParameter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Data; ////// Represents a Parameter that gets its value from the application's QueryString parameters. /// [ DefaultProperty("QueryStringField"), ] public class QueryStringParameter : Parameter { ////// Creates an instance of the QueryStringParameter class. /// public QueryStringParameter() { } ////// Creates an instance of the QueryStringParameter class with the specified parameter name and QueryString field. /// public QueryStringParameter(string name, string queryStringField) : base(name) { QueryStringField = queryStringField; } ////// Creates an instance of the QueryStringParameter class with the specified parameter name, database type, /// and QueryString field. /// public QueryStringParameter(string name, DbType dbType, string queryStringField) : base(name, dbType) { QueryStringField = queryStringField; } ////// Creates an instance of the QueryStringParameter class with the specified parameter name, type, and QueryString field. /// public QueryStringParameter(string name, TypeCode type, string queryStringField) : base(name, type) { QueryStringField = queryStringField; } ////// Used to clone a parameter. /// protected QueryStringParameter(QueryStringParameter original) : base(original) { QueryStringField = original.QueryStringField; } ////// The name of the QueryString parameter to get the value from. /// [ DefaultValue(""), WebCategory("Parameter"), WebSysDescription(SR.QueryStringParameter_QueryStringField), ] public string QueryStringField { get { object o = ViewState["QueryStringField"]; if (o == null) return String.Empty; return (string)o; } set { if (QueryStringField != value) { ViewState["QueryStringField"] = value; OnParameterChanged(); } } } ////// Creates a new QueryStringParameter that is a copy of this QueryStringParameter. /// protected override Parameter Clone() { return new QueryStringParameter(this); } ////// Returns the updated value of the parameter. /// protected internal override object Evaluate(HttpContext context, Control control) { if (context == null || context.Request == null) { return null; } return context.Request.QueryString[QueryStringField]; } } } // 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
- OperationResponse.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- WinFormsComponentEditor.cs
- FormsIdentity.cs
- UniqueIdentifierService.cs
- TypeForwardedToAttribute.cs
- Underline.cs
- BridgeDataReader.cs
- Int64AnimationBase.cs
- SectionRecord.cs
- HtmlControl.cs
- XmlSchemaInfo.cs
- EncoderParameters.cs
- TextTreeInsertUndoUnit.cs
- VirtualPathProvider.cs
- SerializationUtility.cs
- XmlReaderDelegator.cs
- SimpleTypesSurrogate.cs
- MediaSystem.cs
- TransportElement.cs
- SpecularMaterial.cs
- DataSetMappper.cs
- UIPropertyMetadata.cs
- RepeaterItemEventArgs.cs
- GridViewEditEventArgs.cs
- XmlDataSourceView.cs
- SimpleParser.cs
- ValidatedControlConverter.cs
- FigureParagraph.cs
- RouteParser.cs
- Pool.cs
- MarkupCompilePass2.cs
- CacheOutputQuery.cs
- AspNetSynchronizationContext.cs
- TrackBarDesigner.cs
- EventPrivateKey.cs
- ApplicationSecurityManager.cs
- UnsafeNativeMethods.cs
- CultureMapper.cs
- InputLangChangeEvent.cs
- TemplateParser.cs
- UdpChannelFactory.cs
- OutOfMemoryException.cs
- StrokeNodeData.cs
- StyleCollection.cs
- FormatterConverter.cs
- MatrixIndependentAnimationStorage.cs
- Oci.cs
- DeleteCardRequest.cs
- MultiByteCodec.cs
- TransformFinalBlockRequest.cs
- HttpValueCollection.cs
- FontDifferentiator.cs
- FullTextLine.cs
- SiteMapNodeItem.cs
- HttpInputStream.cs
- ContextMenu.cs
- SchemaTypeEmitter.cs
- GridViewSelectEventArgs.cs
- File.cs
- PropertyChangedEventArgs.cs
- InputReport.cs
- AnonymousIdentificationSection.cs
- WsdlInspector.cs
- ResourcesChangeInfo.cs
- ListCollectionView.cs
- DependencyPropertyKey.cs
- unitconverter.cs
- SystemDiagnosticsSection.cs
- RowUpdatedEventArgs.cs
- ListView.cs
- MessageSmuggler.cs
- Classification.cs
- LocalTransaction.cs
- ScopedMessagePartSpecification.cs
- DetailsViewPageEventArgs.cs
- SocketAddress.cs
- EmptyEnumerable.cs
- StreamSecurityUpgradeAcceptorBase.cs
- SettingsPropertyValue.cs
- Error.cs
- LocalizableAttribute.cs
- HTMLTagNameToTypeMapper.cs
- PixelShader.cs
- UpdatePanelTriggerCollection.cs
- Baml6ConstructorInfo.cs
- WebPartVerb.cs
- ScrollBarRenderer.cs
- CallSiteHelpers.cs
- SqlUtil.cs
- ItemContainerGenerator.cs
- XmlUrlResolver.cs
- SmiGettersStream.cs
- StylusDevice.cs
- DrawingContextWalker.cs
- ReflectionHelper.cs
- DictionaryContent.cs
- ConfigurationPropertyCollection.cs
- FontDialog.cs
- PreProcessInputEventArgs.cs