Hi
I am using the webimageviewer and have noticed it does a postback once it loads onto the client, is there a reason for this and is there a way to prevent it?
Thanks.Dave
Hi Dave,
It definitely shouldn't be doing that. Can you post the code you're using so that I can see if can reproduce this behavior?
Thanks,
-SteveZ
Hello Steve
Thanks for the response, your sample application seems to respond in the same way as well(Samples/WebImageViewer/ImageViewerDatabinding.aspx?View=Run)
Thanks for your help.
dave
Steve
That is really strange my breakpoint gets hit twice, it also happens in my own project, that is why I then checked the sample to see if it was only me. I am not sure what to do in that case.
Dave
Do you have any ideas on this ?!
I wasn't able to reproduce the issue, so if there was an issue, it appears to be fixed in the upcoming release of the WebImageViewer in 8.1.
Is this version available yet? If so where do I download it?
Not that anyone seemed to have a vague interest, but it is due to Firefox i do my development and normally test in firefox as my default browser, I was reworking this problem and thought i would check IE, and it does not do the two postbacks! Spooky!
Hi Rumen,
THanks for the help, I have submitted it as a bug so shall just hang tough (as they say in the films), most of my clients will be on IE so it's not the end of the world....
Just a quick follow-up - I see that indeed this is something caused by the rendering of WebImageViewer - in certain situations images are rendered with empty src tags, hence the effect you are seeing with hitting the page twice in FireFox.
I suggest contacting developer support with a link to this forum thread and submitting it as a bug - this way you will be entered as a notify person when the bug is resolved in a subsequent hotfix.
I hope that this is not a major showstopper for you in your project.
I have seen a problem in FireFox requesting pages twice, for no apparent reason. It took me a lot of time to figure this out, but it appears that if you have images on the page with empty src tag, e.g.
<img src="">
This will cause FireFox to request the Html / ASPX page twice for reasons which are better described here:
http://geekswithblogs.net/bcaraway/archive/2007/08/24/114945.aspxhttp://brian.pontarelli.com/2006/05/02/is-your-browser-requesting-a-page-twice/
Could you please check if this is the case? In this case, you may want to avoid that or place transparent images with 1px width/heigh as suggested in a workaround in one of the blog posts above.