Okay, I know that dynamic buttons and buttons in general don't use a typical postback and they post through the page.request.form. Okay, so in visual studio, I was able to determine that page.Request.form and in the all-keys property, i SEE my button there. It is the last item in all-keys.
When I am clicking this dynamic button which is in an updatepanel, the script below does not detect it as a button, it is still showing it as null:
public static Control GetPostBackControl(Page page)
Control control = null;
string ctrlname = page.Request.Params.Get("__EVENTTARGET");
if (ctrlname != null && ctrlname != string.Empty)
control = page.FindControl(ctrlname);
View Complete Post