Nico
Nico

Reputation: 1594

Can I call JScript functions or access JScript objects via DLR on the server side (ASP.Net)?

Is there a way to call JScript functions or access JScript objects via DLR on the server side (ASP.Net)?

This question is driven by the fact that there existed a way to call JScript from within Silverlight apps by the DLR. - Mr. Hejlsberg showed it on pdc '08 via DLR and the JavaScript-Binder here. I didn't find any concrete information on that feature being present for ASP.Net; I even read that the binder was abandoned by Microsoft. - So I hope to get some information here.

Upvotes: 0

Views: 282

Answers (2)

Nico
Nico

Reputation: 1594

See here: http://aspnet.codeplex.com/wikipage?title=Dynamic%20Language%20Support&referringTitle=Home, but there is, however no clear roadmap.

Upvotes: 0

Can Poyrazoğlu
Can Poyrazoğlu

Reputation: 34780

You CAN create JavaScript functions and register them on the server side, you CAN access those scripts, but (forgive me if I'm stating something that you already know, but just in case you don't know...) you CAN'T make the browser call the scripts whenever you want via the server (well, at least, with normal ways). A request is made, and a response is sent, and that's it. There is no logical ongoing connection between the browser and the server, and that's not possible, if that's what you wanted. Perhaps you may want to provide a simple example so we can help further.

Upvotes: 1

Related Questions