I used code below to open pdf file from web server. How to check the existence of file before open it? Response.Redirect("http://intranet/member/" & CStr(Session("memberid")) & ".PDF")