Page.DeterminePostBackMode Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

protected internal virtual NameValueCollection DeterminePostBackMode()

Return Value

Type: System.Collections.Specialized.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.

.NET Framework
Available since 1.1
Return to top
Show: