Do not specify any button click handler in the master page, instead specify one for each content page.
You may try - In page_load for each content page:
Button btn = this.Master.FindControl("Button1") as Button;
btn.Click += new System.EventHandler(myBtnClickHandler);
Hope you got the idea.
[by pushp_aspnet]
Cheers,
Edo