Above is my testing code in included javascript file. Image changes does not take effect immediately. Image show correct image on the next load so it leads me to believe that function is getting called correctly it just doesn't update image right away.

I have tried adding "?sdf=" with random numbers and what not, but no matter what I do image does not refresh.

Can you post some more code so we can see how and when this code is being called?
–
James JohnsonSep 7 '11 at 15:47

I'm extending existing code that is gigantic. If you could specify it would be more manageable for me to show it to you.
–
CodingTwinkySep 7 '11 at 16:27

1

What is triggering the image change? Is it a button click or onload, or elsewhere? I'm wondering if you might be changing the image too late. Also, did you try setting EnableViewState to false on the Image?
–
James JohnsonSep 7 '11 at 16:40

Above javascript will fire when a user clicks a button to bring up an ascx page. And i'm leaning towards the idea that i'm changing image is too late. But considering this is existing and massive code, either I tinker this to work or rewrite, which can't be an option...
–
CodingTwinkySep 7 '11 at 16:46

Is it possible to post the button click code at least? The current code is not enough to answer the question with any amount of confidence.
–
James JohnsonSep 7 '11 at 16:50