Page.DeterminePostBackMode Page.DeterminePostBackMode Page.DeterminePostBackMode Page.DeterminePostBackMode Method


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

protected public:
 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 Friend Overridable Function DeterminePostBackMode () As NameValueCollection


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.


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