Home > .Net Development > ASP.NET - What would be a MapPath() like function for a script in App_Code directory?

ASP.NET - What would be a MapPath() like function for a script in App_Code directory?



I wonder how do I get the server's file path so I can assign it to a variable for a function I made in the "App_Code" directory?



Something that is not part of the System.Web.UI.Page namespace/object.

    
Guest


How about...



System.Web.HttpContext.Current.Server.MapPath

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2010 by Infoqu. All rights reserved