I got a really wierd message when I tried to add a response.write

I added a class to my project that would handle db access

I have the colde like this:

Public Class DBAccess

Public Function GetPurchaseOrderLines(parameters) As DataTable
Try

//perform all db here



Return objDt
Catch ex As Exception
Response.Write(ex.Message)
End Try


End Function


Howcome I can't use Response.Write there? It says that it isn't available in this context... Do I have to add namespace reference for this??? That is something new to me....


kind regards
Henrik