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
- SdlChannelSink.cs
- SingleKeyFrameCollection.cs
- ScrollContentPresenter.cs
- CriticalFileToken.cs
- EventLogger.cs
- CharConverter.cs
- DataGridTableStyleMappingNameEditor.cs
- NameSpaceExtractor.cs
- ArrangedElement.cs
- InputMethodStateChangeEventArgs.cs
- Win32SafeHandles.cs
- Baml2006SchemaContext.cs
- XmlSchemaInferenceException.cs
- X509Chain.cs
- BinaryReader.cs
- BinaryObjectInfo.cs
- RankException.cs
- DocumentStream.cs
- ControlPaint.cs
- DtdParser.cs
- XmlName.cs
- SoapHttpTransportImporter.cs
- PresentationTraceSources.cs
- FactorySettingsElement.cs
- Exceptions.cs
- SafeFileMappingHandle.cs
- RequestCache.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ResourceContainer.cs
- DateTime.cs
- UpDownBaseDesigner.cs
- XmlDataProvider.cs
- ColumnWidthChangedEvent.cs
- SecurityManager.cs
- XamlTemplateSerializer.cs
- BaseTreeIterator.cs
- Solver.cs
- LocalIdKeyIdentifierClause.cs
- WebServiceEnumData.cs
- SecurityException.cs
- BoolLiteral.cs
- WebServicesSection.cs
- UnmanagedMarshal.cs
- XMLUtil.cs
- HGlobalSafeHandle.cs
- TextParagraphProperties.cs
- BindToObject.cs
- RelatedPropertyManager.cs
- DataGridParentRows.cs
- ProcessHostServerConfig.cs
- ISAPIWorkerRequest.cs
- XmlSchemaSimpleContent.cs
- xamlnodes.cs
- MemberDomainMap.cs
- CapabilitiesAssignment.cs
- ActiveDocumentEvent.cs
- RemoveStoryboard.cs
- CurrentChangedEventManager.cs
- NavigationProperty.cs
- PerfCounters.cs
- WebControl.cs
- FormattedTextSymbols.cs
- TerminateDesigner.cs
- NameValueConfigurationCollection.cs
- SessionStateModule.cs
- SeparatorAutomationPeer.cs
- BitmapEffect.cs
- BooleanExpr.cs
- AdornerPresentationContext.cs
- SaveFileDialog.cs
- DatagridviewDisplayedBandsData.cs
- DispatcherHookEventArgs.cs
- CapabilitiesAssignment.cs
- JpegBitmapDecoder.cs
- FilterQuery.cs
- RequestContext.cs
- RewritingProcessor.cs
- WebBrowserHelper.cs
- SqlClientMetaDataCollectionNames.cs
- XslVisitor.cs
- OnOperation.cs
- ColumnMapCopier.cs
- EditingContext.cs
- TextFormatterImp.cs
- PrintEvent.cs
- RadialGradientBrush.cs
- RSAPKCS1SignatureFormatter.cs
- ResolveMatchesCD1.cs
- DeploymentSectionCache.cs
- SchemaElementDecl.cs
- SchemaElement.cs
- followingsibling.cs
- Pens.cs
- HttpApplication.cs
- NullExtension.cs
- TextServicesPropertyRanges.cs
- ThreadStateException.cs
- FormattedText.cs
- PassportAuthentication.cs
- XmlDocument.cs