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))
精彩评论