0
Answer

how to check file exist or not on serverpath in global.asax

Photo of Harshal Thakre

Harshal Thakre

10y
974
1
file exist at particular location :

1.below code is working in any aspx.cs file
2.but it's not working in global.asax.

if (File.Exists(HttpContext.Current.Server.MapPath("~/AutoMailSend.htm")))
      {


      }

so please tell me how can i use this code in global file