Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Remove inline styles from asp controls

Reply
Thread Tools

Remove inline styles from asp controls

 
 
hardieca@hotmail.com
Guest
Posts: n/a
 
      12-20-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inline Styles - Img Height, Width, Align? simonkey88@hotmail.com HTML 9 02-13-2007 09:11 PM
checking and setting inline styles dave8421@hotmail.com Javascript 0 01-04-2007 04:20 AM
overriding inline styles? John Salerno HTML 12 02-01-2006 02:51 PM
Converting inline styles to an external style sheet cmonsta ASP .Net 1 03-08-2005 03:22 AM
inline hyperlink styles shank HTML 1 12-18-2003 06:04 PM



Advertisments