I was trying to view pdf file on my asp.net project using the following code
Private Sub WriteToResponse(ByVal fileName As String, ByVal saveAsFile As Boolea