If you are working with Self Service and tried to build a custom button using the techniques discussed in the article " Adding Buttons to an ASP Page ".
e.g.
var strCallASPButton = CRM.Button("ASP","save.gif", CRM.Url("myPage.asp")); myBlock.AddButton…