Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Here is my code:

ASP.NET
<asp:UpdatePanel runat="server" ID="Images" UpdateMode="Conditional" >
            <ContentTemplate>
<table align="center" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td>
                                 
                            </td>
                            <td align="center" width="50%">
                                <asp:Label ID="lblCompName" runat="server" BorderColor="AliceBlue" Font-Bold="true"
                                    Font-Size="350%" ForeColor="Brown" Text=""></asp:Label>
                            </td>
                        </tr>
<tr>
                            <td>
                                 
                            </td>
                            <td align="right" width="50%">
                                <asp:Image ID="ImgView" runat="server" BorderStyle="Ridge" BorderColor="Aqua" BorderWidth="5px"
                                    Height="250px" ImageAlign="Right" Width="300px" />
                            </td>
                        </tr>
</ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Timer1"  EventName="Tick"  />
            </Triggers>
        </asp:UpdatePanel>
 <asp:Timer ID="Timer1" runat="server" Interval="2000" OnTick="Timer1_Tick">
        </asp:Timer>


What I have tried:

AM trying to refresh images and some datas using updatepanel..
As a result all the data will refresh but the first image still showing with out any change..The Panel is refreshing but the image not changes..
Posted
Updated 22-Apr-16 22:38pm
v4
Comments
F-ES Sitecore 23-Apr-16 8:41am    
It might be a caching issue if the image url isn't changing. If that's the case add something random to the url, so make it like

"~/images/image.jpg?r=" + Guid.NewGuid().ToString("N)
Member 12403164 25-Apr-16 6:48am    
Many Thanks..It Works

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900