In my ASP.net web project, I\'ve written the following Javascript code in a .js file:
function getDeviceTypes() { var deviceTypes; $.ajax({ a
You can import the namespace at the beginning: System.Web.Hosting.HostingEnvironment
<%@ Master Language="VB" AutoEventWireup="false" CodeFile="Site.master.vb" Inherits="Site" %> <%@ Import namespace="System.Web.Hosting.HostingEnvironment" %>
and on js: