开发者

How to update photo in gridview

I have a gridview with employees name, there is link to another page,with employee information,when the user click on the link, according to employee id get the employee information from database, in this page we can ad开发者_JS百科d photos or update them,which works fine,

the problem is when updating the photo, and click the link, I see the same photo not the updates one,until I refresh the browser,

what is the solution for this?

Thanks in advance,


It seem sto be a cache problem. try to send a random param in the url to the next page where you see the Employees. Or try to put in the page where you see the employee information

Response.Cache.SetCacheability(HttpCacheability.No Cache)
Response.Cache.SetExpires(Now())
Response.AddHeader( "Pragma", "no-cache")

Hope it works

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜