Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / QueryStringParameter.cs / 2 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HandleRef.cs
- TreePrinter.cs
- XmlSchemaSimpleTypeUnion.cs
- TextTreeTextNode.cs
- TypedTableBase.cs
- ColumnWidthChangedEvent.cs
- WpfKnownTypeInvoker.cs
- DbDataRecord.cs
- ToolStripSplitStackLayout.cs
- ValidateNames.cs
- altserialization.cs
- MimeTypeAttribute.cs
- HandledMouseEvent.cs
- TimerElapsedEvenArgs.cs
- EntityDataSourceContainerNameConverter.cs
- WebPartVerb.cs
- ChineseLunisolarCalendar.cs
- WindowsTitleBar.cs
- ArrayEditor.cs
- ConfigurationManagerInternal.cs
- TryLoadRunnableWorkflowCommand.cs
- CommentEmitter.cs
- DataServiceStreamProviderWrapper.cs
- ErrorWebPart.cs
- Configuration.cs
- DependencyObject.cs
- ColorAnimation.cs
- DataTableNewRowEvent.cs
- EntityDataSourceMemberPath.cs
- SqlDataSourceCustomCommandPanel.cs
- UnsafeNativeMethods.cs
- ManagementObjectSearcher.cs
- EntityViewContainer.cs
- IdentityValidationException.cs
- TreeNodeClickEventArgs.cs
- HScrollProperties.cs
- SoapAttributeOverrides.cs
- ZoneIdentityPermission.cs
- FontFamily.cs
- ISAPIWorkerRequest.cs
- ValueChangedEventManager.cs
- CharacterString.cs
- PinnedBufferMemoryStream.cs
- ForeignConstraint.cs
- HttpStaticObjectsCollectionBase.cs
- Int64AnimationBase.cs
- XLinq.cs
- DiagnosticTrace.cs
- SynchronousSendBindingElement.cs
- DoneReceivingAsyncResult.cs
- SwitchAttribute.cs
- XmlQualifiedNameTest.cs
- PropertyCondition.cs
- SetState.cs
- SqlUserDefinedTypeAttribute.cs
- XmlSchemaGroup.cs
- RawStylusInputReport.cs
- RootAction.cs
- Win32Exception.cs
- Predicate.cs
- WindowsAuthenticationModule.cs
- Pointer.cs
- Base64Decoder.cs
- Input.cs
- WebPartDisplayMode.cs
- COSERVERINFO.cs
- CheckedListBox.cs
- SubordinateTransaction.cs
- TimeoutException.cs
- Substitution.cs
- WindowsToolbarAsMenu.cs
- AxisAngleRotation3D.cs
- TypeSystem.cs
- CustomCredentialPolicy.cs
- StylusPlugin.cs
- Cursor.cs
- DockAndAnchorLayout.cs
- OleStrCAMarshaler.cs
- ResourceDictionaryCollection.cs
- DefaultShape.cs
- HierarchicalDataSourceControl.cs
- MenuItem.cs
- regiisutil.cs
- CommandHelper.cs
- InheritanceContextChangedEventManager.cs
- RectAnimationUsingKeyFrames.cs
- HttpRuntime.cs
- EntitySqlQueryState.cs
- AvtEvent.cs
- NamespaceMapping.cs
- NullableDoubleMinMaxAggregationOperator.cs
- ToolZone.cs
- ColorDialog.cs
- ConfigurationManagerHelper.cs
- DataSourceConverter.cs
- HMAC.cs
- IsolatedStorageSecurityState.cs
- NativeMethodsCLR.cs
- FullTextLine.cs
- BindableTemplateBuilder.cs