views:

20

answers:

0

I had posted one question here

I solved the problem but little confuse about reason. Question was webBrowser control in .net was not displaying images. Moreover, If I press Ctrl+N, it opens same page in external IE browser. all images are displyed properly there. Once I do this step and then after, when webBrowser Control refresh page all images are displayed on WebBrowser Control as well. What I observed is, In my project the flow was like this. First time I was making request to server along with InstanceID in queryString. My web server were removing InstanceID while sending response. Any subsequent request without InstanceID to server will get failed.

Moral of the story: (Reason for confusing scenario, where images were not displayed inside webBrowser control but it were displayed in IE when I pressed Ctrl+N) : According to my understanding (Correct me if I am wrong) when client request for a page to web server, first web server respond with html content. client browser will display html content and if content has tag, browser first check images in cache. if it found inside cache it will display otherwise it will make another request to server to get images. In my case, second request was made by changed url and hence, it got failed. (May be its nature of only webBrowser control.) however IE works fine. Perhaps IE was using initial URL for all subsequent requests.

I would like to know Is my understanding correct? Also I would like to know, how exactly client server communication happens in case of tag.

Any hepl is appreciated.

Thank You.