Get the ImageButton Control ID that Raised PostBack in CodeBehind file of ASP.Net?
Normally we can get the name of the control which causes the page post back by the following
this.Page.Request.Form["__EVENTTARGET"]
But this will not be applicable for controls like Asp Image Button...iam getting this.Page.Request.Form["__EVENTTARGET"] as blank for Image button?
onw way we can do it by using below:
this.Page.Request.Form is a string collection we can loop through the collection
and check whether image button control id exist in the list or not.
But i dont want in this way ..every time i have to loop all controls and check image button control id.....
is there any other way to get ImageButton Control ID that Raised PostBack in CodeBehind file of ASP.Net?