Question: Response.write (squiggly line)

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

I can use response.write in any one of my webforms. But when I try to use it
in a Module's public sub there is a squiggly blue line under response.
Hovering over it says 'Name response is not declared.' Do I have to import
something?

Any ideas?

Thanks in advance.
 
You simply need to refer to the current context.
You can do this by specifying the full namespace like this:

System.Web.HttpContext.Current.Response.Write("...")
 
Back
Top