J
J055
Hi
A number of controls which use images seem to render html with a default
style attribute: style="border-width:0px;"
e.g.
<input type="image" name="ctl00$Main$ImageButton1"
id="ctl00_Main_ImageButton1" src="images/address_book.gif"
style="border-width:0px;" />
<img id="ctl00_Main_Image1" src="images/delete.gif"
style="border-width:0px;" />
I'd like to remove it from all of these controls because it's a waste of
mark-up and we use external stylesheets to style web pages.
I've tried things like this in the Load and PreRender page events but the
style refuses to disappear.
ImageButton1.Style.Clear();
ImageButton1.Style.Remove.("border-width");
Any suggestions?
Thanks
Andrew
A number of controls which use images seem to render html with a default
style attribute: style="border-width:0px;"
e.g.
<input type="image" name="ctl00$Main$ImageButton1"
id="ctl00_Main_ImageButton1" src="images/address_book.gif"
style="border-width:0px;" />
<img id="ctl00_Main_Image1" src="images/delete.gif"
style="border-width:0px;" />
I'd like to remove it from all of these controls because it's a waste of
mark-up and we use external stylesheets to style web pages.
I've tried things like this in the Load and PreRender page events but the
style refuses to disappear.
ImageButton1.Style.Clear();
ImageButton1.Style.Remove.("border-width");
Any suggestions?
Thanks
Andrew