Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / QueryStringParameter.cs / 1 / QueryStringParameter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Data; using System.Security.Permissions; ////// Represents a Parameter that gets its value from the application's QueryString parameters. /// [ DefaultProperty("QueryStringField"), ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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 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. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Data; using System.Security.Permissions; ////// Represents a Parameter that gets its value from the application's QueryString parameters. /// [ DefaultProperty("QueryStringField"), ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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 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
- LocalizedNameDescriptionPair.cs
- TaskFormBase.cs
- PriorityBinding.cs
- GenericUriParser.cs
- QilTernary.cs
- Int32CAMarshaler.cs
- ServiceSecurityAuditBehavior.cs
- CriticalFinalizerObject.cs
- ShaperBuffers.cs
- GlyphingCache.cs
- SpoolingTaskBase.cs
- HttpChannelFactory.cs
- BufferBuilder.cs
- Button.cs
- HostUtils.cs
- MachineKeySection.cs
- XmlElementAttribute.cs
- DetailsViewDeleteEventArgs.cs
- OleDbDataAdapter.cs
- ComboBoxAutomationPeer.cs
- ProcessHostFactoryHelper.cs
- EncodingDataItem.cs
- XmlQualifiedName.cs
- BindingExpressionUncommonField.cs
- PasswordTextContainer.cs
- _LazyAsyncResult.cs
- OracleDataReader.cs
- CachedPathData.cs
- DiagnosticTrace.cs
- Facet.cs
- BezierSegment.cs
- CookieParameter.cs
- ConfigurationProperty.cs
- TimeSpanOrInfiniteValidator.cs
- Soap.cs
- DataGridCellClipboardEventArgs.cs
- SqlServer2KCompatibilityAnnotation.cs
- TypeDescriptor.cs
- ClientUrlResolverWrapper.cs
- OutputCacheSettings.cs
- ScriptServiceAttribute.cs
- CategoryAttribute.cs
- shaperfactory.cs
- InputLanguageEventArgs.cs
- ListChangedEventArgs.cs
- UTF8Encoding.cs
- WebPartsPersonalizationAuthorization.cs
- ExcludeFromCodeCoverageAttribute.cs
- PasswordDeriveBytes.cs
- InstanceOwnerException.cs
- WindowsSolidBrush.cs
- SecUtil.cs
- ProcessThread.cs
- HttpGetProtocolReflector.cs
- InputLanguageProfileNotifySink.cs
- DesignerDataTable.cs
- DropDownHolder.cs
- HashHelper.cs
- ModelPropertyImpl.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- WebPermission.cs
- BufferedReceiveManager.cs
- RotateTransform.cs
- NamedPipeTransportSecurityElement.cs
- FtpWebRequest.cs
- SQLBinary.cs
- FormatterServices.cs
- SqlMethodAttribute.cs
- XmlNullResolver.cs
- PopupEventArgs.cs
- BamlLocalizer.cs
- EmptyQuery.cs
- SoapElementAttribute.cs
- StackOverflowException.cs
- HttpsHostedTransportConfiguration.cs
- IOThreadScheduler.cs
- ForwardPositionQuery.cs
- TargetException.cs
- _AutoWebProxyScriptWrapper.cs
- Adorner.cs
- OlePropertyStructs.cs
- SqlOuterApplyReducer.cs
- RijndaelManagedTransform.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SafeProcessHandle.cs
- _NegotiateClient.cs
- SctClaimSerializer.cs
- CommandBindingCollection.cs
- WorkflowMarkupSerializationException.cs
- FormViewInsertedEventArgs.cs
- DBDataPermissionAttribute.cs
- ObjectTypeMapping.cs
- XslCompiledTransform.cs
- GZipDecoder.cs
- MimeReturn.cs
- ClientSideProviderDescription.cs
- InfoCardBaseException.cs
- MonitorWrapper.cs
- mediaclock.cs
- MonthCalendar.cs