Remove inline styles from asp controls

H

hardieca

Hi,

I'm adding an asp:Image control to a page, but I'm having a hard time
removing an inline style from the emitted HTML. My control:

<asp:Image ImageUrl="myPic.jpg" alt="My Pic" />

comes out as

<img src="myPic.jpg" alt="My Pic" style="border-width:0px" />

The inline style has a greater specificity than a border style I've
applied to images in my stylesheet, which is impacting how I want my
page displayed. How do I remove it?

I am using ASP.NET v. 2, and I want this control to emit exactly the
following:

<img src="myPic.jpg" alt="My Pic" />

I do not want to edit the inline style, I want it struck out. Is this
possible?

Regards,

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top