1

Unfortunately the asp:ImageButton control renders an inline style attribute of "border-width:0px;" This is frustrating for a variety of reasons. In the past I have worked around the problem by creating my own custom image button control which doesn't render the inline style attribute. I am looking for a more elegant solution to the problem. Any thoughts would be greatly appreciated.

ahsteele
  • 26,243
  • 28
  • 134
  • 248

1 Answers1

2

Here is a very simple ControlAdapter which demonstrates adding the attribute when desired, and leaving it off entirely when not.

Community
  • 1
  • 1
Rex M
  • 142,167
  • 33
  • 283
  • 313
  • Somehow I missed that question and answer when I did cursory searches. Thank you for pointing me in the right direction! The Adapter is much cleaner than writing my own control. – ahsteele Apr 02 '09 at 02:30