Using Server.MapPath in a Public Shared Function?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to use Server.MapPath in a Public Shared Function?

Using the following code in this context - shows "Sever" as not declared -

Public Shared Function Back_End_State() As Integer
Dim FILENAME As String = Server.MapPath("SomeText.txt")

- what can I do to fully qualify it?
 
Is it possible to use Server.MapPath in a Public Shared Function?

Using the following code in this context - shows "Sever" as not declared -

Public Shared Function Back_End_State() As Integer
Dim FILENAME As String = Server.MapPath("SomeText.txt")

- what can I do to fully qualify it?

Probably need a reference to System.Web
 
Back
Top