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?
Who is Participating?

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.