frm1.1 c#
in my project library(.cs) when i use server.mappath() it never works why?
i useHttpContext.Current.Server.MapPath();
to access but it never reads the path of the file give why?
Are you sure your project library has access to the HttpContext? In other words, when you are debugging, is HttpContext.Current null?
What do you mean by it never works!! make sure you import the System.Web namespace using System.Web;
HC
thanks everybody for the reply
haissam i have used system.web namespace
i dont know why the server.mappath never gets the file path when in mylibrary project files
Are you working on a web application ?
0 comments:
Post a Comment