Returns the control that has caused the postback.

Namespace: MonoSoftware.Web
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static Control GetPostBackControl(
	this Page page,
	Control root
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetPostBackControl ( 
	page As Page,
	root As Control
) As Control
Visual C++
public:
[ExtensionAttribute]
static Control^ GetPostBackControl(
	Page^ page, 
	Control^ root
)
F#
static member GetPostBackControl : 
        page : Page * 
        root : Control -> Control 

Parameters

page
Type: System.Web.UI..::..Page
Page which executed a postback.
root
Type: System.Web.UI..::..Control
Root control under which the postback control is to be found.

Return Value

Type: Control
Control that has caused a postback.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Page. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also