btnSave.Attributes.Item("onclick") = "this.disabled=true;" & GetPostBackEventReference(btnSave).ToString
(or)
btnSave.Attributes.Add("onclick", "this.value='Please wait...';this.disabled=true;" & GetPostBackEventReference(Me.btnSave))
(or)
btnSave.Attributes.Item("onclick") = "if(ValidateEntries()==true){this.disabled=true;btnCancel.disabled=true;" & GetPostBackEventReference(btnSave).ToString & ";}"
(or for ASP.NET 2.0 and above)
btnSave.Attributes.Add("onclick", "this.disabled=true;" + ClientScript.GetPostBackEventReference(btnSave, "").ToString())