문제

I am using Holder.js to genearte client side images.

If I write

<img src="holder.js/300x200">

it works..! But if I write the same thing in an update panel the image is not generated. When I inspect the element using chrome tools, the image is rendered with correct Image URL but does not display the image. Why is this happening? and any solutions to it?

My Code:

<asp:UpdatePanel ID="updatepnlReppeaterSummary" runat="server">
    <ContentTemplate>
         <asp:Repeater ID="repeaterSummary" runat="server">
              <ItemTemplate>
                  <div class="row">
                      <div class="col-sm-12">
                            <img src="holder.js/300x200">
                      </div>
                  </div>
              </ItemTemplate>
         </asp:Repeater>
    </ContentTemplate>
</asp:UpdatePanel>

Any help appreciated...

도움이 되었습니까?

해결책

You have to execute Holder.run after every DOM update. Make sure to call Holder.run on the pageLoad event or another callback.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top