开发者

how to get image path from server drive

How to get imgepath from server drive. I have all imges in C drive Chek开发者_高级运维out folder which included my projct. I want to display that image in my asp.net application. I did server path C:\Chekout but it is searchin in users local system not in server. Please Help me..

Thanks.


You would need to do something like this:

YourPath = HttpContext.Current.Server.MapPath(VirtualPathUtility.ToAbsolute(YourFileName))
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜