我在使用 Opera 时遇到以下问题。 下面是asp.net代码
<asp:Image runat="server" ID="imgExpand"/>
<ajaxToolkit:CollapsiblePanelExtender ID="cpe" runat="Server"
ImageControlID="imgExpand"
ExpandedImage="<%$ Image:collapse.png %>"
CollapsedImage="<%$ Image:expand.png %>"
/>
在 FF3、IE6、IE7、IE8 中生成以下内容:
<img style="border-width: 0px;" src="/style/img/collapse.png" id="ctl00_ContentPlaceHolder1_imgExpand" title="Ausblenden..."/>
但是 Opera 10 中存在以下情况:
<img id="ctl00_ContentPlaceHolder1_ucProductList_rptProducts_ctl02_imgExpand" class="expand-img" src="" style="border-width:0px;"/>
如您所见,src=""为空,因此没有显示图像。
你知道这个问题有什么解决办法吗?
非常感谢
最佳答案
听起来很奇怪。我还没有听说过这个特定的错误,但您可能可以像避免与 ASP.NET 愚蠢的、损坏的浏览器嗅探相关的所有问题一样解决它: turn it off .
关于asp.net - 歌剧错误 : src ="" generated by asp:image is empty,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1443429/