开发者

how to get image path from server drive

开发者 https://www.devze.com 2023-04-10 10:51 出处:网络
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:\

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

精彩评论

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