Previous Thread

6/19/2006 10:21:28 AM    Imagebutton / Image bug?
Hello NG, 
 
Why in Asp.net 2.0 Image  / Imagebutton always renders a style 
 
'border-width:0px' even if Borderwidth is empty ? Is there a workaround ? 
 
thanx



6/19/2006 1:23:51 PM    Re: Imagebutton / Image bug?
it's by default, 
 
did you tried to add the style as CSS to change it? 
 
or add: 
 
BorderWidth="1" BorderStyle="Solid" BorderColor="Black" to the tag 
 
-- 
 
Bruno Alexandre 
 
(a Portuguese in Københanv, Danmark) 
 
"Peter" <nomail@nospam.com> escreveu na mensagem 
 
news:uYVkno3kGHA.1000@TK2MSFTNGP04.phx.gbl...

6/19/2006 3:29:59 PM    Re: Imagebutton / Image bug?
hi Bruno, 
 
problem: 
 
i would like to set the border-width in a css file for all controls. 
 
because asp.net always renders border-width as inline-style 
 
and overrides settings from css class it's impossible! 
 
no workaround to stop asp.net's behavior? 
 
"Bruno Alexandre" <bruno.in.dk@gmail.com> schrieb im Newsbeitrag 
 
news:%23SxOfL5kGHA.1272@TK2MSFTNGP03.phx.gbl...

6/19/2006 3:45:08 PM    Re: Imagebutton / Image bug?
if you ommited in the tag properties, css file will be the one that the tag 
 
uses! 
 
maybe you are setting the CSS wrong? 
 
try: 
 
..border { 
 
border: solid 3px black; 
 
} 
 
in a CSS file, link it in the page and then add CssClass="border" to the 
 
asp:image tag 
 
-- 
 
Bruno Alexandre 
 
(a Portuguese in Københanv, Danmark) 
 
"Peter" <nomail@nospam.com> escreveu na mensagem 
 
news:OqLdzR6kGHA.1276@TK2MSFTNGP03.phx.gbl...