Rediger

Del via


Page.DeterminePostBackMode Method

Definition

Returns a NameValueCollection of data posted back to the page using either a POST or a GET command.

protected:
 virtual System::Collections::Specialized::NameValueCollection ^ DeterminePostBackMode();
protected public:
 virtual System::Collections::Specialized::NameValueCollection ^ DeterminePostBackMode();
protected virtual System.Collections.Specialized.NameValueCollection DeterminePostBackMode ();
protected internal virtual System.Collections.Specialized.NameValueCollection DeterminePostBackMode ();
abstract member DeterminePostBackMode : unit -> System.Collections.Specialized.NameValueCollection
override this.DeterminePostBackMode : unit -> System.Collections.Specialized.NameValueCollection
Protected Overridable Function DeterminePostBackMode () As NameValueCollection
Protected Friend Overridable Function DeterminePostBackMode () As NameValueCollection

Returns

A NameValueCollection object that contains the form data. If the postback used the POST command, the form information is returned from the Context object. If the postback used the GET command, the query string information is returned. If the page is being requested for the first time, null is returned.

Remarks

The DeterminePostBackMode method returns a NameValueCollection object that contains the data posted back to the page. The presence of the page hidden fields VIEWSTATE and EVENTTARGET is used to help determine whether a postback event has occurred. The IsPostBack property is set when the DeterminePostBackMode method is called.

Applies to

See also