Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Displaying image throug code

  Asked By: Isabel    Date: Sep 17    Category: Sharepoint    Views: 1090

My problem is i wanted to display image which is stored in C:\Program
Files\Common Files\Microsoft Shared\Web Server Extensions\60\template\images\ in
image tag .But if i directly type the path ,the image is not visible through
browser of other machine since it looks on local c drive of client machine .I i
use server.mappath ,i get path as c:\inetpub \wwwroot \sites\... which does
not have the image .So i used
http://bk3b3f-3227/_layouts/images/MotorolaReports.gif path in src of image but
the problem is it display same image every time and does not change dynamically
.As the this image is created dynamically on basis of chart which is chosen by
user , I need to refresh again to get correct chart image



1 Answer Found

Answer #1    Answered By: Candis Kinney     Answered On: Sep 17

The lack of refresh  is likely a client problem  rather than a server  one. What
are your cache settings in your browser? There is also a way top trick the
client cache to always refresh reagrdless of your settings - when creating the
url add "?refresh=342682374.gif" to the end where the number is a different
random number each time. This will make your urls look like

Didn't find what you were looking for? Find more on Displaying image throug code Or get search suggestion and latest updates.