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
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