La funzione Page_Load porta con se due argomenti, il primo è il sender. Scrivi così:
Button Btn=(Button)sender;
if (Btn.ID=="idprimopulsante")
....
else
....
se usi il vb per fare il cast usa il ctype e non finire le righe con ;
Team Icon - Software Engineering
------------------------------
Unicredit Global Information Services Spa
Senior Developer