ButSelDept.Attributes.Add("onClick","window.open('about:blank');");So simple ^_^....I think you should not use a capital letter as the first letter of a private member.