Exemplo n.º 1
0
 /// <summary>
 /// 修改global.asax文件
 /// </summary>
 /// <returns></returns>
 private static bool TryWriteGlobalAsax()
 {
     try
     {
         File.SetLastWriteTimeUtc(FileDownHelper.GetMapPathFile("~/global.asax"), DateTime.UtcNow);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 修改web.config文件
 /// </summary>
 /// <returns></returns>
 private static bool TryWriteWebConfig()
 {
     try
     {
         File.SetLastWriteTimeUtc(FileDownHelper.GetMapPathFile("~/web.config"), DateTime.UtcNow);
         return(true);
     }
     catch
     {
         return(false);
     }
 }