Hi, there.

I have some code that must be run in the Page_Init event of my ASP.NET page. However, this code should only be run if a certain button is clicked. The problem that I am having is that the Page_Init event fires before the Button_Click event.

Is there a way, in the Page_Init event to find out which control caused the page PostBack? If so, I can use this to determine whether to run the code.