Not sure from your description how you're updating your backimageurl on the client. Can you write some of your code here?
Of course!
Below is the code for the Atlas Ajax TimerControl... this code verify my panels in 2 seconds ticks and in the end refresh my UpdatePanel...
My panels was created dinamicaly without any special condition, and inserted into the UpdatePanel...
Remember that changing the Panel control to Image control, the app works correctly... and with panel control and Firefox browser the app also works fine...
Protected Sub tmrCiclo_Tick(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles tmrCiclo.Tick vetPt = Session("Status")Dim cnAs New MySqlConnection(ConfigurationManager.ConnectionStrings("connection").ConnectionString)Dim cmdAs New MySqlCommand("SELECT NumPonto,CorPonto,Status FROM Ponto WHERE NomeProjeto='" & ProjetoAtual.NomeProjeto & "' AND NumAnunciador='" & vetAnunciadores(Session("AnunciadorAtual")).NumAnunciador & "'", cn) Dim dr As MySqlDataReader cn.Open() dr = cmd.ExecuteReader() While dr.Read() Dim pn As Panel = FindControl("pnPt" & dr("NumPonto")) If vetPt(dr("NumPonto")) <> dr("Status") Then vetPt(dr("NumPonto")) = dr("Status") If dr("Status") = 0 Then pn.BackImageUrl = "images/ap.gif" Else pn.BackImageUrl = "images/pr-yellow.gif"End If updPnAn.Update()End If End While dr.Close() cn.Close()End Sub
What do u think?
It could be a cache problem with IE. Try putting some random number at the end of your image urls : pn.BackImageUrl = "images/ap.gif?seed=" + (new Random()).NextDouble().ToString(); (sorry it's C#)
Hi Dimitrod!
I did what u said...
Now, just the old panels stops to run the gifs... The last panels that I changed the BackImageUrl is running ok...
For exemple: I change the backImage of the first panel... is running ok...
After this, I change the backImage of the second panel... the first panel and the second one is running ok...
After, I change the backImage of the third panel... the first panel gif stop to run... the second some times is running other times not... and the third is running ok...
Other problem is that now the gifs is not in the same frequency, as before...
With this tests, I think that really is a cache problem with IE...
Do you have another sugestion to solve this??
Thanks so much
Dear Sir,
It's an Inernet Explorer problem....
Try to delete any numbers you have put in the width or hight in the property for the panel, and I hope that it works...
Thanks...
No comments:
Post a Comment