"https://secure.ifbyphone.com/click_to_xyz.php?app=cts&acct=XXX&scheduleonly&survo_id=ccc&key=dfgdg&type=2&sdate=" & StartDate & "&edate=" & EndDate & "&tz=Pacific&phone=" & csvfile & "&attempts=3&desc=Mydfgdfg"
Dim hRequest As HttpWebRequest = WebRequest.Create(str)
Try
Dim resp As HttpWebResponse = hRequest.GetResponse()
Dim sr AsNew StreamReader(resp.GetResponseStream())
Dim results AsString = sr.ReadToEnd()sr.Close()lblCallStatus.Visible =
True
lblCallStatus.Text = results
Catch ex As WebExceptionResponse.Write(
"<font color=red>Error<br />Status: " & ex.Status & "Message: " & ex.Message & "</font>")
EndTryin the above code i want to handle if there is any error dure csv file does not have write format or any erros records not found in .csv file etcc.How to handle this.