System.Web.UI.Adapters.PageAdapter.DeterminePostBackMode Method

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

Syntax

public virtual System.Collections.Specialized.NameValueCollection DeterminePostBackMode ()

Returns

A System.Collections.Specialized.NameValueCollection of the postback variables, if any; otherwise null.

Remarks

The PageAdapter.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.

Requirements

Namespace: System.Web.UI.Adapters
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0