Hi,
We are working on an ASP .NET application using .NET 2.0 and AJAX.
The main page of the application has a user control, which is a multi-view control.
This control has an instance of ScriptManager and UpdatePanel. The problem that I am talking about is in one of the views where the user
confirms the selected information.
A screen shot of the same view is attached. The user enters a random number, as seen in the image, in the text box. In case the number generated is not clear, user
can change the number by clicking the Change button. THE PROBLEM IS THAT THE IMAGE DOESN'T GET UPDATED FOR ALL THE CHANGE BUTTON CLICKS.
For your information, the image is implemented as an aspx page shown below :
<img alt="Please try again" src="MyImageSource.aspx" id="imgMy" runat="server" enableviewstate="true" /></td>
A quick analysis of the http communication shows that partial page update is happening for the view( http response has the latest data for the view).But image
is not getting updated. In cases, where the image gets updated ( once in three for four clicks), we can see that a separate HTTP GET request is sent for MyImageSource.aspx.
What could be the problem ?
Included below are the Response header being set to make sure that there are no IMAGE cache.
Response.Expires = -1;
Response.AddHeader("Pragma", "no-cache");
Response.AddHeader("cache-control", "no-store");
Anybody having experienced similar problem ?
With Regards
Ajit