Solved

ASP.NET/VB: Style Junk Added

Posted on 2011-09-15
2
231 Views
Last Modified: 2012-05-12
Why does this:
<asp:image ID="headlineImage" runat="server" ImageUrl="headlines.jpg" alt=" News" title="News" />

Open in new window

Turn into this:
<img id="headlineImage" alt="News" title="News" src="headlines.jpg" style="border-width:0px;" />

Open in new window

?

Where does the style="border-width:0px;" code come from?  I do NOT want it!
0
Comment
Question by:hankknight
  • 2
2 Comments
 
LVL 38

Expert Comment

by:Tom Beck
ID: 36546040
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 36546050
I recommend using the standard html <img tag and adding the attribute runat="server" if you need to access the images server side. Then you can style your image borders as you please.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now