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
- ZipIOModeEnforcingStream.cs
- ParallelRangeManager.cs
- ImageInfo.cs
- ListBox.cs
- XmlToDatasetMap.cs
- ModifierKeysConverter.cs
- CatalogPart.cs
- TargetConverter.cs
- XamlHostingSectionGroup.cs
- EncryptedReference.cs
- Matrix3DStack.cs
- HTTPRemotingHandler.cs
- MdiWindowListStrip.cs
- ResourceDictionaryCollection.cs
- XPathDocumentNavigator.cs
- FileSystemInfo.cs
- SQLCharsStorage.cs
- LogWriteRestartAreaState.cs
- IConvertible.cs
- LogExtent.cs
- CodeArrayIndexerExpression.cs
- DataRecordInfo.cs
- StyleTypedPropertyAttribute.cs
- EndpointConfigContainer.cs
- StatusBarPanel.cs
- AutoGeneratedField.cs
- ListDataHelper.cs
- MemoryStream.cs
- DataControlField.cs
- WindowsClientElement.cs
- Cursor.cs
- CustomCategoryAttribute.cs
- EntityDataSourceValidationException.cs
- HttpModulesInstallComponent.cs
- ReflectionUtil.cs
- HistoryEventArgs.cs
- _ListenerAsyncResult.cs
- RightsManagementResourceHelper.cs
- CancellationScope.cs
- CookieHandler.cs
- ConnectionProviderAttribute.cs
- StyleSheetRefUrlEditor.cs
- ObjectListDesigner.cs
- CollectionEditVerbManager.cs
- WebBrowsableAttribute.cs
- SiteMapNodeCollection.cs
- CompilationSection.cs
- SystemIPInterfaceStatistics.cs
- NTAccount.cs
- DirectionalLight.cs
- SplineKeyFrames.cs
- BinaryUtilClasses.cs
- OdbcRowUpdatingEvent.cs
- DataGridItem.cs
- DataGridPagerStyle.cs
- ToolStripManager.cs
- WebServiceParameterData.cs
- SingleAnimationBase.cs
- Visitor.cs
- TemplatePropertyEntry.cs
- InteropBitmapSource.cs
- GridEntry.cs
- VisualStyleElement.cs
- FrameworkTemplate.cs
- Int16KeyFrameCollection.cs
- GrammarBuilderRuleRef.cs
- ipaddressinformationcollection.cs
- MD5.cs
- HttpCookieCollection.cs
- StylusPointPropertyId.cs
- WebRequest.cs
- ActivityDelegate.cs
- MasterPageParser.cs
- XhtmlTextWriter.cs
- FloaterParagraph.cs
- CachedTypeface.cs
- XPathException.cs
- OrderPreservingPipeliningMergeHelper.cs
- Vector3DAnimationUsingKeyFrames.cs
- IdentitySection.cs
- HtmlInputHidden.cs
- HtmlMeta.cs
- Column.cs
- DataViewListener.cs
- StrokeIntersection.cs
- ObjectStateFormatter.cs
- Delay.cs
- Vector3DConverter.cs
- InstanceKey.cs
- BufferedReadStream.cs
- GlobalizationAssembly.cs
- SmtpLoginAuthenticationModule.cs
- WebPartAddingEventArgs.cs
- IsolatedStorageFile.cs
- Material.cs
- StringWriter.cs
- SchemaImporterExtensionElementCollection.cs
- PresentationAppDomainManager.cs
- CodeExpressionCollection.cs
- CompositionAdorner.cs