tags:

views:

163

answers:

2

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

+1  A: 

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

Oded
+1  A: 

I guess you need this?

ArsenMkrt