how to access c# dll from javascript?
-
Hello friends, I want to access C# dll functions from javascript. Can any one tell me steps to do it? Thanks
Amit
You can do it using
ActiveX
Components. But this will work only onIE
.Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Hello friends, I want to access C# dll functions from javascript. Can any one tell me steps to do it? Thanks
Amit
If you use Ajax you can make calls to a web host if the C# dll accepts post request, you can translate your requests through an ASP.NET page, or if you use Silverlight you can interact with silverlight from Javascript. Each choice has pro's and con's. If you really want seamless interaction, use Java and Live Connect.
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
Hello friends, I want to access C# dll functions from javascript. Can any one tell me steps to do it? Thanks
Amit
Create one HttpHandler, in that reference the dll and do all you need in ProcessRequest. From javascript, call the handler to fetch the response. If you want to use Javascript to access WebMethod, you can also do that using PageMethod, for which you need to expose the methods as Web Service. Take a look into this : http://forums.asp.net/p/1266663/2382644.aspx[^] :)
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript