I used that article on code project to create my own Captcha image, is there a way to make the image refresh?
I have noticed that on IE 9 the image doesn’t refresh during the server validation, but on chrome the image does refresh. very odd
I used that article on code project to create my own Captcha image, is
Share
This is because of browser caching
Add a random QueryString to image url , dynamically everytime.
in the article link I can see that Image1 has given ImageURL in aspx itself.
You can change the code and make it server side to append dynamic querystring on all refresh
e.g.
I faced similar problem with images, I try by disabling caching and other tricks , but they not run on all browsers and no gurantee of caching disable all the time , whereas this trick works fine for me as everytime your image sent a new request (different imageurl)