Tuesday, June 17, 2014

use httpcontext and server mappath in a c# class library

1) add using System.Web;

2)string  filePath = HttpContext.Current.Server.MapPath("~/TextFiles/StylePath.txt");

No comments:

Post a Comment