DeterminePostBackMode Method

Page.DeterminePostBackMode Method

Determines the type of request made for the Page class.

[Visual Basic]
Protected Overridable Function DeterminePostBackMode() As _
protected virtual NameValueCollection DeterminePostBackMode();
protected: virtual NameValueCollection* DeterminePostBackMode();
protected function DeterminePostBackMode() : NameValueCollection;

Return Value

If the post back used the POST method, the form information is returned from the Context object. If the postback used the GET method, 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.


This information is based on whether the page was posted back and whether the GET or POST HTTP method was used for the request.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Page Class | Page Members | System.Web.UI Namespace | HttpContext

© 2016 Microsoft