Hello bowser,
Several ways
1) AJAX. There are several implementaion of it - from Microsoft and other
companies
2) Client Callback features:
http://dotnetjunkies.com/Tutorial/E8...0EECF13D7.dcik
Google to find out more examples
For example see there
http://www.codeproject.com/aspnet/Al...eScripting.asp
---
WBR,
Michael Nemtsev [C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
b> Hello,
b> I have a problem of communication between JScript and C#. I must say
b> that I'm new to both.
b> In a JS file I have to call a C# function.
b> In particular I have:
b> public function Eval(expr : String) : String
b> {
b> return eval(expr);
b> }
b> And I want to call:
b>
b> Eval("MyNS.myFunction()");
b>
b> where myFunction is declared in a C# file, under the namespace MyNS,
b> and returns a string.
b>
b> Is it possible to do such a thing without to consider COM objects
b> (which I've heard to be used in similar problems)?
b>
b> Note that the .js file is generated dinamically by a CodeDomProvider
b> in
b> C#.
b> It is compiled by adding the reference of the .exe file, which
b> contains
b> myfunction():
b> parameters.ReferencedAssemblies.Add("MyApp.exe");
b> So the call Eval("MyNS.myFunction()"); will be done with Reflection
b> One more question: is there another way to use the jscript function
b> eval in C#? Maybe compiling a .js module (not dinamically and not
b> using reflection) that can be used by a C# module?
b>
b> Thank you.
b>
b> Alessandro
b>