H
hb
Hi,
I have a product.aspx page that has a DataGrid containing images. I save the
html source code
of the page into product.htm. When I open product.htm from IE, it behaviors
exactly as product.aspx.
But when I open it from Netscape 4.1, all images jump out from datagrid and
are displayed on the
top of the page.
The image is inserted into datagrid using <asp:templatecolumn>:
<asp:templatecolumn headertext="Image">
<itemtemplate>
<asp:image runat="server" imageurl='<%#
"/images/"+DataBinder.Eval(Container.DataItem, "thumb") %>' borderwidth="0">
</asp:image>
</itemtemplate>
</asp:templatecolumn>
In the HTML source code, the <img> appears like:
<img src="/images/prodthumb/10634.jpg" style="border-width:0px;" />
If I replace: style="border-width:0px;" by border="0" in the above <img>,
the product.htm will appear
properly in Netscape4.1, otherwise, the image will jump out of datagrid. It
seems that Netscape 4.x
doesn't support "style" attribute in <img>.
There is a way in asp.net that allows me to set the server controls not
generating "style" attribute but
regular attribute?
Thank you
Hongbo
I have a product.aspx page that has a DataGrid containing images. I save the
html source code
of the page into product.htm. When I open product.htm from IE, it behaviors
exactly as product.aspx.
But when I open it from Netscape 4.1, all images jump out from datagrid and
are displayed on the
top of the page.
The image is inserted into datagrid using <asp:templatecolumn>:
<asp:templatecolumn headertext="Image">
<itemtemplate>
<asp:image runat="server" imageurl='<%#
"/images/"+DataBinder.Eval(Container.DataItem, "thumb") %>' borderwidth="0">
</asp:image>
</itemtemplate>
</asp:templatecolumn>
In the HTML source code, the <img> appears like:
<img src="/images/prodthumb/10634.jpg" style="border-width:0px;" />
If I replace: style="border-width:0px;" by border="0" in the above <img>,
the product.htm will appear
properly in Netscape4.1, otherwise, the image will jump out of datagrid. It
seems that Netscape 4.x
doesn't support "style" attribute in <img>.
There is a way in asp.net that allows me to set the server controls not
generating "style" attribute but
regular attribute?
Thank you
Hongbo