Adrian said:
Isn't it funny how the JS groups say it a C# issue! and visa virsa, but
those with the comments know not the anwsers, or choose not to share!
This is not an issue of deliberately not sharing information. It is not in
the interest of anyone from MS or any of the news group volunteers to keep
anything from you.
Rather, the pointer to another newsgroup serves to do two things. First, it
increases the likelihood that you will be put in contact with someone who
can help you. And second, it keeps the group in which the post was made "on
topic".
The fact that it often takes a knowledge of two or three technolgies to
accomplish a given task while newsgroup regulars tend to be masters of one
only further complicates matters.
That said, I have to tell you that I am not a JScript expert. But, were I
you, I would look at the JScript function ActiveXObject used like so
newObj = new ActiveXObject(servername.typename[, location])
It is described here:
http://msdn2.microsoft.com/en-US/library/6958xykx.aspx
That function allows you to create a COM object in script code.
Then what you need to do is to figure out how to make your C# class appear
to clients as a COM object. One way to do that is to use the RegAsm
(register assembly) tool to register a .Net assembly as a COM object. It is
described here:
http://msdn.microsoft.com/library/d...ml/cpgrfAssemblyRegistrationToolRegasmexe.asp
Now, I'm neither an expert at scripting or COM - you'll find one of those
characters in another group. There may be other hurdles involved (security?)
in the solution I sketched and in fact there may be a better method. Good
luck.
Regards,
Will