AUTHOR: Eyup Yusein
DATE POSTED: November 27, 2017
DESCRIPTION In some scenarios it might prove helpful to know which control has caused the PostBack or partial request action to the server.
SOLUTION
You can use one of these approaches to achieve this requirement.
protected
void
Page_Load(
object
sender, EventArgs e)
{
string
id1 = Request.Params[
"__EVENTTARGET"
];
id2 = Request.Form[
id3 = ScriptManager.GetCurrent(Page).AsyncPostBackSourceElementID;
bool
isAJAX = ScriptManager.GetCurrent(Page).IsInAsyncPostBack;
if
(isAJAX)
id4 = DeterminePostBackMode()[
}
Resources Buy Try