Monday, March 26, 2012

MapPath from JScript?

Please help. I need to use MapPath in an HTA written in JScript.

import System;

gives me an Syntax Error.

TIA,

korondyHi,

if I'm not mistaken an HTA is an html application right? That means that it's executed client side while asp.net is executed server side. The 2 have nothing to do with each other.

Grz, Kris.
Thx, XIII. You are right and I should have figured this out. So, another re-write of my app.
Indeed, it's a common mistake but the bright side of it is that people learn from their mistakes :-) If you're developing in Visual Studio .NET, you should always have IntelliSense when you're editing the code of a code-behind file. If it's not the case, you should start to thing: "Maybe I'm wrong?". Of course, nothing holds you from generating the HTA-client-side code using ASP.NET.

0 comments:

Post a Comment