?
Solved

ASP.NET/VB: Style Junk Added

Posted on 2011-09-15
2
Medium Priority
?
237 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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

771 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