6
Answers

Error in using: (Server.MapPath("//ImageUrl")

Bineesh  VP

Bineesh VP

11y
2k
1
Sir,  I am Getting an error  when using:-

string[] imageName = System.IO.Directory.GetFiles(Server.MapPath("/Photos"));

Getting error that :  An object reference is required for the non-static field, method, or property 'System.Web.UI.Page.Server.get'   

Why getting this error, is the lack of namespace or reference?



Answers (6)