?
Solved

when a image is uploaded , image is not getting refreshed. i tried giving   Img.ImageUrl = Server.MapPath(imagepath+"?i=" +system.guid.newguid().Tostring() ) gives virtual path error.

Posted on 2008-11-18
3
Medium Priority
?
255 Views
Last Modified: 2013-12-08
when a new image is uploaded with the same name , image is not getting refreshed. still old image is shown.
in code behind file i gave following:

imgGraph.src = Server.MapPath(imagepath+"?i=" & system.guid.newguid().Tostring());
throws run time error.


0
Comment
Question by:krish1682
3 Comments
 
LVL 13

Expert Comment

by:sm394
ID: 22984125
try somthing
imgGraph.src = Server.MapPath(imagepath + "/" +ImageName );
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22984292
try this
imgGraph.src = Server.MapPath(imagepath) +"?i=" & system.guid.newguid().Tostring();
0
 

Accepted Solution

by:
krish1682 earned 0 total points
ID: 22984350
the above 2 are not working for me. I removed server.mappath and its working fine.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question