Solved

ASP.NET/VB: Style Junk Added

Posted on 2011-09-15
2
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

696 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