Ray:
 
Thank you very much.  That was indeed what needed to be done. 
 
Server.MapPath was buried so deep, I just couldn't find it in intellisense.

 
I did some internet searching, but just kept finding the ASPX usage of it.  
 
Thanks
Andy

  _____  

From: [email protected]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 3:18 PM
To: [email protected]
Subject: RE: [ASP] .Net - Server.MapPath


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?




---------------------------------------------------------------------    
Home       : http://groups.yahoo.com/group/active-server-pages
<http://groups.yahoo.com/group/active-server-pages> 
---------------------------------------------------------------------
Post       : [email protected]
Subscribe  : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 



  _____  

YAHOO! GROUPS LINKS 


        
*        Visit your group "active-server-pages
<http://groups.yahoo.com/group/active-server-pages> " on the web.
  

*        To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>

  

*        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 


  _____  




[Non-text portions of this message have been removed]



------------------------ 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/
 


Reply via email to