Try fully qualifying it. System.Web.HttpContext.Current.Server.MapPath
Ray at work > -----Original Message----- > From: Mills, Andy R. (Regency) > Hello Guys: > > I have an ASP.Net application written in C#. I am having an > issue using Server.MapPath in this application. > > I have found if I use this is my code-behind for the .aspx > page: I have no problem using this. However: I am trying > to move this to my business logic, which is in the same > application, just another .cs file. However: > once I move this from the code-behind page, I am no longer > able to use a Server.MapPath function. I tried all the > using.....statements, and none of them have worked. > > Is Server.MapPath strictly to be used in the code-behind? ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
