I'm converting an old ASP 2.0 file that used interpreted javascript,
and need it to work in Jscript.net on in an .aspx file. The old code
instantiate an MSXML object using late binding, in the conversion I'd
like to take advantage of early binding. Here is the original code:
var oXML = Server.CreateObject( 'Msxml2.DOMDocument.6.0' );
To change that to early binding, I'd like to do somthing like this:
var oXML = new DOMDocument60();
What I'm unsure about is how do I reference the msxml6.dll file in the
project, and add a using-like reference? I read something about a
@Assembly page directive, but I don't quite understand...is that
something someone can help me with?
Thanks!
geoffrey.mcgrath@gmail.com - 03 Dec 2007 04:20 GMT
I guess I should emphasize that other than early binding, I'm hoping
to not change any code--the first step of our conversion is to just
make it compile, not to otherwise optimize. And I think that if I
knew how to properly bind and reference the MSXML6.dll then the other
code wouldn't require any further changes.
Optimization is a task for later...
As an aside, It seems there isn't much JScript.net posting activity
out there...that is sad, i've enjoyed JScript and it's starting to
feel kind of lonely! Or is the JScript.net community hiding somewhere
I haven't found (and hiding from Google too...that's a neat trick :)