473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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



Jun 19 '06 #1
3 2558
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" <no****@nospam.com> escreveu na mensagem
news:uY**************@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


Jun 19 '06 #2
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" <br*********@gmail.com> schrieb im Newsbeitrag
news:%2****************@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" <no****@nospam.com> escreveu na mensagem
news:uY**************@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



Jun 19 '06 #3
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" <no****@nospam.com> escreveu na mensagem
news:Oq**************@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" <br*********@gmail.com> schrieb im Newsbeitrag
news:%2****************@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" <no****@nospam.com> escreveu na mensagem
news:uY**************@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




Jun 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ruca | last post by:
Hi gurus, I have a imagebutton in my WebForm, and I want that when I click (mouse down) on her the imagebutton change image and when I "unclick" (mouse up) change to the original image. Basically...
3
by: Benjamin Gavin | last post by:
Hi all, I recently stumbled upon a bug in the ASP.NET framework handling of ImageButton based postbacks. The issues derives from the fact that IE and Mozilla handle the case of a missing image...
1
by: Nathan Sokalski | last post by:
I want to create a pushbutton-like control on my webform that has an image on it. I used to think that this is what the ImageButton control was, but it seems to me that the ImageButton is nothing...
13
by: tperri | last post by:
I have an HTML table with several fields like this: <A href="Savings.aspx?category=Food"><asp:imagebutton id="imgFood" ImageUrl="images\buttons\btn-food-i.gif"...
0
by: Oddball | last post by:
I have set up a page with uses two lots of image buttons, one for a collection and one for more images from that collection. I generate all the image buttons on page init (I know, but I...
3
by: jens.buchta | last post by:
Hi! I'm using a DataGrid with a template column to display an Image inside of it. I'm hooking into its OnPrerender-Event to set the ImageURL-Property dynamically. Everything works just fine...
5
by: Varangian | last post by:
Hi there experts, Is there a way to convert a System.Drawing.Image to an ImageButton. Maybe using ChangeType I don't know! Thank you
3
by: JuniorProgrammer | last post by:
Am trying to add an Image Button into a Datalist at Design time. When I run it it comes up with error: Server tag not well formed. It works perfectly when I add just an Image Control. Please...
5
by: David Lozzi | last post by:
Howdy, New to .Net 2.0 and I'm about to go back to 1.1! So many little changes are driving me nuts. I have an ImageButton in a GridView template column. When clicking the image, it should send...
3
by: Ganesh | last post by:
Hi There, Could you some tell me the difference between Image and ImageButton, which one do i need to use if i want to show some picture on the html Thanks Ganapathi
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.