DeterminePostBackMode Method
.NET Framework Class Library
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)
Visual Basic (Declaration)
Protected Friend Overridable Function DeterminePostBackMode As NameValueCollection
Visual Basic (Usage)
Dim returnValue As NameValueCollection

returnValue = Me.DeterminePostBackMode()
C#
protected internal virtual NameValueCollection DeterminePostBackMode()
Visual C++
protected public:
virtual NameValueCollection^ DeterminePostBackMode()
JScript
protected internal function DeterminePostBackMode() : NameValueCollection

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, nullNothingnullptra 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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker