Solved

ASP.NET/VB: Style Junk Added

Posted on 2011-09-15
2
232 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

28 Experts available now in Live!

Get 1:1 Help Now