Opera Bug: src = "" generated by asp: image is empty

I have the following problem with Opera. The following asp.net code

<asp:Image runat="server" ID="imgExpand"/>

<ajaxToolkit:CollapsiblePanelExtender ID="cpe" runat="Server"
    ImageControlID="imgExpand"
    ExpandedImage="<%$ Image:collapse.png %>"
    CollapsedImage="<%$ Image:expand.png %>"
    />

      

generates the following in FF3, IE6, IE7, IE8:

<img style="border-width: 0px;" src="/style/img/collapse.png" id="ctl00_ContentPlaceHolder1_imgExpand" title="Ausblenden..."/>

      

however the following in Opera 10:

<img id="ctl00_ContentPlaceHolder1_ucProductList_rptProducts_ctl02_imgExpand" class="expand-img" src="" style="border-width:0px;"/>

      

As you can see, src = "" is empty and therefore no image is displayed.

Do you know any solution to this problem?

Thank you so much

+2


source to share


2 answers


Sounds pretty weird. I haven't heard of this particular error, but you could work around it in the same way you can avoid all the problems associated with the idiotic, hacked ASP.NET browser: enable it from .



+2


source


Found the same issue. But I noticed that the official example works for Opera. After some games, the reason was found: You must specify an image for control (ImageUrl = "~ / Img / icon-plus.gif")

<asp:ImageButton ID="ib" runat="server" ImageUrl="~/Img/icon-plus.gif" ImageAlign="AbsMiddle" />

      



And after that enter the ID of this control (ImageControlID = "ib"):

<ajaxToolkit:CollapsiblePanelExtender ID="cpe" runat="Server" TargetControlID="pD" ExpandControlID="pH" CollapseControlID="pH" 
        Collapsed="True" TextLabelID="lCategoryName" ImageControlID="ib" ExpandedText="(Hide Details...)" CollapsedText="(Show Details...)"
        SuppressPostBack="true" ExpandedImage="~/Img/icon-minus.gif" CollapsedImage="~/Img/icon-plus.gif" />

      

+1


source







All Articles