RouteParameter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Binds the value of a URL segment to a parameter object.
public ref class RouteParameter : System::Web::UI::WebControls::Parameter
public class RouteParameter : System.Web.UI.WebControls.Parameter
type RouteParameter = class
inherit Parameter
Public Class RouteParameter
Inherits Parameter
- Inheritance
Remarks
If you implement ASP.NET routing in a Web site, you can use the RouteParameter object to bind the value of a segment of the requested URL to a database query or command. You can declare RouteParameter objects in markup for data source controls or the QueryExtender control.
Constructors
RouteParameter() |
Initializes a new instance of the RouteParameter class. |
RouteParameter(RouteParameter) |
Initializes a new instance of the RouteParameter class by using the values of the specified instance. |
RouteParameter(String, DbType, String) |
Initializes a new instance of the RouteParameter class by using the specified name and database type for the parameter, and by using the specified key for the route data. |
RouteParameter(String, String) |
Initializes a new instance of the RouteParameter class by using the specified name for the parameter and the specified key for route data. |
RouteParameter(String, TypeCode, String) |
Initializes a new instance of the RouteParameter class by using the specified name and type for the parameter, and by using the specified key for the route data. |
Properties
ConvertEmptyStringToNull |
Gets or sets a value indicating whether the value that the Parameter object is bound to should be converted to |
DbType |
Gets or sets the database type of the parameter. (Inherited from Parameter) |
DefaultValue |
Specifies a default value for the parameter, should the value that the parameter is bound to be uninitialized when the Evaluate(HttpContext, Control) method is called. (Inherited from Parameter) |
Direction |
Indicates whether the Parameter object is used to bind a value to a control, or the control can be used to change the value. (Inherited from Parameter) |
IsTrackingViewState |
Gets a value indicating whether the Parameter object is saving changes to its view state. (Inherited from Parameter) |
Name |
Gets or sets the name of the parameter. (Inherited from Parameter) |
RouteKey |
Gets or sets the name of the route segment from which to retrieve the value for the route parameter. |
Size |
Gets or sets the size of the parameter. (Inherited from Parameter) |
Type |
Gets or sets the type of the parameter. (Inherited from Parameter) |
ViewState |
Gets a dictionary of state information that allows you to save and restore the view state of a Parameter object across multiple requests for the same page. (Inherited from Parameter) |
Methods
Clone() |
Returns a duplicate of the current RouteParameter instance. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Evaluate(HttpContext, Control) |
Evaluates the request URL and returns the value of the parameter. |
GetDatabaseType() |
Gets the DbType value that is equivalent to the CLR type of the current Parameter instance. (Inherited from Parameter) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
LoadViewState(Object) |
Restores the data source view's previously saved view state. (Inherited from Parameter) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
OnParameterChanged() |
Calls the OnParametersChanged(EventArgs) method of the ParameterCollection collection that contains the Parameter object. (Inherited from Parameter) |
SaveViewState() |
Saves the changes to the Parameter object's view state since the time the page was posted back to the server. (Inherited from Parameter) |
SetDirty() |
Marks the Parameter object so its state will be recorded in view state. (Inherited from Parameter) |
ToString() |
Converts the value of this instance to its equivalent string representation. (Inherited from Parameter) |
TrackViewState() |
Causes the Parameter object to track changes to its view state so they can be stored in the control's ViewState object and persisted across requests for the same page. (Inherited from Parameter) |
Explicit Interface Implementations
ICloneable.Clone() |
Returns a duplicate of the current Parameter instance. (Inherited from Parameter) |
IStateManager.IsTrackingViewState |
Gets a value indicating whether the Parameter object is saving changes to its view state. (Inherited from Parameter) |
IStateManager.LoadViewState(Object) |
Restores the data source view's previously saved view state. (Inherited from Parameter) |
IStateManager.SaveViewState() |
Saves the changes to the Parameter object's view state since the time the page was posted back to the server. (Inherited from Parameter) |
IStateManager.TrackViewState() |
Causes the Parameter object to track changes to its view state so they can be stored in the control's ViewState object and persisted across requests for the same page. (Inherited from Parameter) |