System.Web.WebPages Helps prevent malicious scripts from submitting forged page requests. Adds an authenticating token to a form to help protect against request forgery. Returns a string that contains the encrypted token value in a hidden HTML field. The current object is null. Adds an authenticating token to a form to help protect against request forgery, allowing callers to specify added authentication details. Returns the encrypted token value in a hidden HTML field. The HTTP context data for a request. An optional random string of characters (such as Z*7g1&p4) that is used to add complexity to the encryption for extra safety. The default is a null string. The domain of a Web application that a request is submitted from. The virtual root path of a Web application that a request is submitted from. The supplied object is null. Validates that input data from an HTML form field comes from the user who submitted the data. The current value is null. The HTTP cookie token that accompanies a valid request is missing-or-The form token is missing.-or-The form token value does not match the cookie token value.-or-The form token value does not match the cookie token value. Validates that input data from an HTML form field comes from the user who submitted the data, allowing callers to specify additional custom details for the validation. An optional random string of characters (such as Z*7g1&p4) used to decrypt an authentication token created by the class. The default is a null string. The current value is null. The HTTP cookie token that accompanies a valid request is missing-or-The form token is missing.-or-The form token value does not match the cookie token value.-or-The form token value does not match the cookie token value.-or-The value supplied does not match the value used to create the form token. Provides access to unvalidated values in the object. Gets a collection of unvalidated Web form values. An unvalidated collection of Web form values. Gets an unvalidated object from a collection in the object. A member of a collection contained in the object. The name of the collection member to get. Gets a collection of unvalidated query-string values. A collection of unvalidated query-string values. Excludes fields of the Request object from being checked for potentially unsafe HTML markup. Returns an unvalidated version of form values or query-string values. An object that contains unvalidated versions of the form and query string values. The object that contains values to exclude. Returns an unvalidated value from the form or query string based on the field that has been requested. A string that contains unvalidated text from the specified field or query-string value. The object that contains values to exclude from validation s The name of the field to exclude from validation. Returns an unvalidated version of form values or query-string values. An object that contains unvalidated versions of the form and query-string values. The object that contains values to exclude from validation. Returns an unvalidated value from the form or query string based on the field that has been requested. A string that contains unvalidated text from the specified field or query-string value. The object that contains values to exclude from validation. The name of the field to exclude from validation. This class and its members support the .NET Framework infrastructure and are not intended to be used directly from your code. This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Details about the exception. This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Details about the exception. An exception that occurred before the current exception. Enumerates the modes that are available for rendering HTML tags. Represents normal mode. Represents the start-tag mode. Represents end-tag mode. Represents self-closing-tag mode. Redirects to the root of the Web site if the host is not local. The HTTP context of the HTTP request. A locally hosted URL. Provides utility methods for converting string values to other data types. Converts a string to a strongly typed value of the specified data type. The converted value. The value to convert. The data type to convert to. Converts a string to the specified data type and specifies a default value. The converted value. The value to convert. The value to return if is null. The data type to convert to. Converts a string to a Boolean (true/false) value. The converted value. The value to convert. Converts a string to a Boolean (true/false) value and specifies a default value. The converted value. The value to convert. The value to return if is null or an invalid value. The default is false. Converts a string to a value. The converted value. The value to convert. Converts a string to a value and specifies a default value. The converted value. The value to convert. The value to return if is null or an invalid value. The default is the minimum time value on the system. Converts a string to a number. The converted value. The value to convert. Converts a string to a number and specifies a default value. The converted value. The value to convert. The value to return if is null or invalid. Converts a string to a number. The converted value. The value to convert. Converts a string to a number and specifies a default value. The converted value. The value to convert. The value to return if is null. Converts a string to an integer. The converted value. The value to convert. Converts a string to an integer and specifies a default value. The converted value. The value to convert. The value to return if is null or is an invalid value. Checks whether a string can be converted to the specified data type. if can be converted to the specified type; otherwise, . The value to test. The data type to convert to. Checks whether a string can be converted to the Boolean (true/false) type. if can be converted to the specified type; otherwise, . The string value to test. Checks whether a string can be converted to the type. if can be converted to the specified type; otherwise, . The string value to test. Checks whether a string can be converted to the type. if can be converted to the specified type; otherwise, . The string value to test. Checks whether a string value is null or empty. true if is null or is a zero-length string (""); otherwise, false. The string value to test. Checks whether a string can be converted to the type. true if can be converted to the specified type; otherwise, false. The string value to test. Checks whether a string can be converted to an integer. if can be converted to the specified type; otherwise, . The string value to test. Represents an ASP.NET Razor page. Called from a derived class to create a new instance that is based on the class. Gets or sets the object that is associated with a page. An object that references HTTP data about the current context of a page. Executes the code in a set of dependent Web pages. Gets the object that is associated with a page. An object that supports rendering HTML form controls in a page. Initializes an object that inherits from the class. Gets the model that is associated with a page. An object that represents a model that is associated with the view data for a page. Gets the state data for the model that is associated with a page. The state of the model. Adds a class to a list of classes that handle page execution and that implement custom features for pages. The class to add. Called by content pages to create named content sections. The name of the section to create. The type of action to take with the new section. Gets or sets the path of a layout page. The path of the layout page. Provides property-like access to page data that is shared between pages, layout pages, and partial pages. An object that contains page data. Provides array-like access to page data that is shared between pages, layout pages, and partial pages. A dictionary that contains page data. In layout pages, renders the portion of a content page that is not within a named section. The HTML content to render. Renders the content of one page within another page. The HTML content to render. The path of the page to render. (Optional) An array of data to pass to the page being rendered. In the rendered page, these parameters can be accessed by using the property. In layout pages, renders the content of a named section. The HTML content to render. The section to render. In layout pages, renders the content of a named section and specifies whether the section is required. The HTML content to render. The section to render. true to specify that the section is required; otherwise, false. The default is false. Contains data that is used by a object to reference details about the Web application, the current HTTP request context, the current execution context, and page data. Gets a reference to the current object that is associated with a page. The current page context object. Gets the object that is associated with a page. The page rendering object. Gets the page data that is shared between pages, layout pages, and partial pages. A dictionary that contains page data. Provides objects and methods that are used to execute and render all ASP.NET Razor pages. Gets the application state data cast as a object that callers can use to create and access custom application-scoped properties. An object that references the application state data. Gets a reference to global application state data that can be shared across sessions and requests in an ASP.NET application. The application state data. When overridden in a derived class, gets or sets the object that is associated with a page. The current context data. Provides methods and properties that are used to render pages that use the Razor view engine. Initializes a new instance of the class. When overridden in a derived class, gets the cache object for the current application domain. The cache object. Gets or sets the culture for the current thread. The culture for the current thread. When overridden in a derived class, calls the methods that are used to initialize the page. When overridden in a derived class, builds a URL using the specified parameters. A URL. The path to include in the URL. Additional path information. When overridden in a derived class, get a value that indicates whether Ajax is being used during the request of the Web page. true if Ajax is being used during the request; otherwise, false. When overridden in a derived class, returns a value that indicates whether the HTTP data transfer method used by the client to request the Web page is POST. true if the HTTP verb is "POST"; otherwise, false. When overridden in a derived class, gets or sets the path of a layout page. The path of a layout page. When overridden in a derived class, provides property-like access to page data that is shared between pages, layout pages, and partial pages. An object that contains page data. Gets the HTTP context for the Web page. The HTTP context for the Web page. When overridden in a derived class, provides array-like access to page data that is shared between pages, layout pages, and partial pages. An object that provides array-like access to page data. When overridden in a derived class, renders a Web page. The markup that represents the Web page. The path of the page to render. Additional data that is used to render the page. When overridden in a derived class, gets the object for the current HTTP request. A object that contains the HTTP values sent by a client during a Web request. When overridden in a derived class, gets the object for the current HTTP response. A object that contains the HTTP-response information from an ASP.NET operation. When overridden in a derived class, gets the object that provides methods that can be used as part of Web-page processing. The object. When overridden in a derived class, gets the object for the current HTTP request. Session data for the current request. When overridden in a derived class, gets information about the currently executing file. Information about the currently executing file. Gets or sets the current culture used by the ResourceManager to look up culture-specific resources at run time. The current culture used by the Resource Manager. When overridden in a derived class, gets data related to the URL path. Data related to the URL path. When overridden in a derived class, gets a user value based on the HTTP context. A user value based on the HTTP context. Represents support for rendering HTML controls in a Web page. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns .