Click or drag to resize

BasicForm Class

Provides the base implementation for basic HTML forms.
Inheritance Hierarchy

Namespace:  NScrape.Forms
Assembly:  NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax
public abstract class BasicForm : HtmlForm

The BasicForm type exposes the following members.

Constructors
  NameDescription
Protected methodBasicForm
Initializes a new instance of the BasicForm class.
Top
Properties
  NameDescription
Protected propertyActionUrl
Gets the action URL of the form.
(Inherited from HtmlForm.)
Public propertyAllControls
Gets all HTML controls contained within the form.
Protected propertyAttributes
Gets the attributes of the form.
(Inherited from HtmlForm.)
Public propertyCheckBoxControls
Gets the HTML input checkbox controls contained within the form.
Protected propertyControls
Gets the controls contained within the HTML form.
(Inherited from HtmlForm.)
Public propertyFormUrl
Gets the URL of the page where the form is located.
(Inherited from HtmlForm.)
Protected propertyHtml
Gets the HTML text of the page containing the form.
(Inherited from HtmlForm.)
Public propertyInputControls
Gets the HTML input controls contained within the form.
Public propertyRadioControls
Gets the HTML input radio controls contained within the form.
Public propertySelectControls
Gets the HTML select controls contained within the form.
Protected propertySubmitAsXmlHttpRequest
Gets or sets a value indicating whether the form submission shall attempt to mimic a JQuery request.
(Inherited from HtmlForm.)
Public propertyTextAreaControls
Gets the HTML textarea controls contained within the form.
Protected propertyWebClient
Gets the web client used to request and submit the form.
(Inherited from HtmlForm.)
Top
Methods
  NameDescription
Protected methodBuildAspxPostBackRequest
Builds the request data to be used to submit an ASPX form.
(Inherited from HtmlForm.)
Protected methodBuildRequest
Builds the request data to be used to submit an HTML form.
(Inherited from HtmlForm.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodLoad(Uri, HtmlFormDefinition)
Loads the form specified by the provided form definition.
(Inherited from HtmlForm.)
Public methodLoad(Uri, KeyValuePairString, String)
Loads the form specified by identifying attribute on the page at the specified URL.
(Inherited from HtmlForm.)
Public methodLoad(Uri, Int32)
Loads the form specified by ordinal on the page at the specified URL.
(Inherited from HtmlForm.)
Public methodLoad(Uri, String, KeyValuePairString, String)
Loads the form specified by identifying attribute in the provided HTML.
(Inherited from HtmlForm.)
Public methodLoad(Uri, String, Int32)
Loads the form specified by ordinal in the provided HTML.
(Inherited from HtmlForm.)
Public methodLoad(Uri, String, String) Obsolete.
Loads the form specified by identifying attributes on the page at the specified URL.
(Inherited from HtmlForm.)
Public methodLoad(Uri, String, String, String) Obsolete.
Loads the form specified by identifying attributes in the provided HTML.
(Inherited from HtmlForm.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSubmitHtmlRequest
Submits the form, specifying the request data.
(Inherited from HtmlForm.)
Protected methodSubmitRedirectRequest
Submits the form, specifying the request data.
(Inherited from HtmlForm.)
Protected methodSubmitRequest(String, WebResponseType)
Submits the form, specifying the request data and the expected response type.
(Inherited from HtmlForm.)
Protected methodSubmitRequest(String, WebResponseType)
Submits the form, specifying the request data and a range of valid response types.
(Inherited from HtmlForm.)
Protected methodSubmitRequest(String, Boolean, WebResponseType)
Submits the form, specifying the request data, redirection action, and the expected response type.
(Inherited from HtmlForm.)
Protected methodSubmitRequest(String, Boolean, WebResponseType)
Submits the form, specifying the request data, redirection action, and a range of valid response types.
(Inherited from HtmlForm.)
Public methodToString (Inherited from Object.)
Top
Remarks
This class is intended to provide a basic foundation for building form classes. It exposes control collections by type for easy usage.

If you need additional or specialized functionality, you can create a form class that inherits from HtmlForm.
See Also