Export (0) Print
Expand All
Expand Minimize

Page.DeterminePostBackMode Method

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 ()
protected NameValueCollection DeterminePostBackMode ()
protected internal function DeterminePostBackMode () : NameValueCollection
Not applicable.

Return Value

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, a null reference (Nothing in Visual Basic) 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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft