Dim path As String
path = Server.MapPath("../Upload/Upload/" & Session("Code").ToString() & "/attachments.pdf")
If File.Exists(path) Then
Response.Redirect("~/Default.aspx")
Else
Label1.Visible = True
Label1.Text = "no files"
End if
I am getting error: Object reference not set to an instance of an object. can someone assist me with what I am doing wrong.
Thanks
...
Go to the complete details ...