vb.net compiler reference

I have an asp page with a vb.net code behind

I have this statement:  Response.TransmitFile(Server.MapPath(....

This works fine but now I created a app_code/class.vb item to use globally in my site.  When I move the code Response.TransmitFile(Server.MapPath( to the new class item the compiler does not like the 'response' or 'server' reference so I need to know where these references are located?
kperelmanAsked:
Who is Participating?
 
CodeCruiserCommented:
Use

HTTPContext.Current.Response.TransmitFile(...)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.