I am using System.IO.File.Exists(Server.MapPath(path)) in my code. Some time when a character (:) colon is coming then Server.MapPath is throwing an exception that System.Web.HttpException: '/MyWeb/pages/javascript:void(0).aspx' is not a valid virtual path.
How do i suppress this error and still call Server.MapPath()
Regards...