Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Imagebutton / Image bug? (http://www.velocityreviews.com/forums/t300436-imagebutton-image-bug.html)

Peter 06-19-2006 08:21 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








Bruno Alexandre 06-19-2006 11:23 AM

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...
> 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
>
>
>
>
>
>
>




Peter 06-19-2006 01:29 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...
> 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...
>> 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
>>
>>
>>
>>
>>
>>
>>

>
>




Bruno Alexandre 06-19-2006 01:45 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...
> 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...
>> 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...
>>> 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
>>>
>>>
>>>
>>>
>>>
>>>
>>>

>>
>>

>
>





All times are GMT. The time now is 11:16 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.