Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

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?
0
kperelman
Asked:
kperelman
1 Solution
 
CodeCruiserCommented:
Use

HTTPContext.Current.Response.TransmitFile(...)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now