I'm trying to do this on a DotNetNuke site with multiple portals, so I want to do this server-side VB loads a javascript file if it exists. Any ideas?
+1
A:
<% 'If the portal.js exists, insert %> <% if System.IO.File.Exists(Server.MapPath(PortalSettings.HomeDirectory & "portal.js")) then %>
portal.js"><% end if %>
sway
2010-10-20 23:07:38