PageAdapter.DeterminePostBackMode Method

Determines whether the Web page is in postback and returns a name/value collection of the postback variables.

Namespace: System.Web.UI.Adapters
Assembly: System.Web (in system.web.dll)

public:
virtual NameValueCollection^ DeterminePostBackMode ()
public NameValueCollection DeterminePostBackMode ()
public function DeterminePostBackMode () : NameValueCollection
Not applicable.

Return Value

A NameValueCollection of the postback variables, if any; otherwise a null reference (Nothing in Visual Basic).

The DeterminePostBackMode method returns one of the following collections:

  • Form variables if the HTTP data transfer method is POST.

  • Query string variables if the HTTP method is GET.

Notes to Inheritors: When you inherit from the PageAdapter class, you can override the DeterminePostBackMode method to provide target-specific handling of the postback variables collection.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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

Community Additions

ADD
Show: