Hi is possible to get the button sender that generates the event click?
if i check the sender in the page_load i view null
Thanks
Hi is possible to get the button sender that generates the event click?
if i check the sender in the page_load i view null
Thanks
In the click event handler for the button it will be the source of the click (e.Source
).
Post back events occur after the page load, so it is not possible to determine in the page load event handler.
See the asp.net page lifecycle for more information