473,320 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

JavaScript and .NET dll files

Hi,

I was wondering if it were possible to call a .dll file created in .NET
from a Javascript function?

Thanks,
Roshawn
Nov 19 '05 #1
10 3090
Roshawn Dawson <ud****@bellsouth.net> wrote in news:uqj0fMEJFHA.1396
@TK2MSFTNGP10.phx.gbl:
I was wondering if it were possible to call a .dll file created in .NET
from a Javascript function?


only if the .NET DLL is exposed as a ActiveX object.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
Roshawn,

This is not possible to call the DLL directly from Javascript as Javascript
is a client-side technology and the DLL resides on the server. You could
have Javascript post back to the page with some sort of variable in the
querystring or a hidden input and parse the postback in the code behind.

Ian Suttle
http://www.IanSuttle.com
http://www.NewsFuel.com - Aggregated Technology News

"Roshawn Dawson" wrote:
Hi,

I was wondering if it were possible to call a .dll file created in .NET
from a Javascript function?

Thanks,
Roshawn

Nov 19 '05 #3
WJ
Then I will not come to your site :) ever

John

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uq**************@TK2MSFTNGP10.phx.gbl...
Hi,

I was wondering if it were possible to call a .dll file created in .NET
from a Javascript function?

Thanks,
Roshawn

Nov 19 '05 #4
You probably should better define what exactly you want to do.

Nov 19 '05 #5
WJ
JS is not meant to execute anything that is not "client oriented". It is
there to "enhance" user experience with the wonderful internet browser.
Example: If I arrive at a website and I want to have that special
experience, then I would say, yes, please download this, say an "Activex
control", and I will risk myself to open it. However, I do not want to see
JS that executes a program behind the scene from somewhere else that I am
not aware of !

John
"re****@community.nospam" <ma**********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
You probably should better define what exactly you want to do.

Nov 19 '05 #6
Thank you for your responses.

However, being a newbie ASP.NET programmer, I've done some reading in
the last couple of hours.

I've now learned of the uses of the <script> section of an ASP.NET page.
I understand that this section can become server-side code if marked
correctly (ie. runat="server").

Here's what I'm trying to do. Code in the <script> section would do a
particular operation. The results of that operation I'd like to use in
a JavaScript function.

Can this be done?

Thanks,
Roshawn

Nov 19 '05 #7
Roshawn Dawson <ud****@bellsouth.net> wrote in news:OH6PlbFJFHA.1176
@TK2MSFTNGP12.phx.gbl:
Here's what I'm trying to do. Code in the <script> section would do a
particular operation. The results of that operation I'd like to use in
a JavaScript function.


What you're probably looking for is Javascript Remoting:

http://www.thycotic.com/dotnet_remotescripting.html

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #8
Thanks for the link.

If you all haven't noticed, there's a lot of talk on the web regarding
Google Suggest. The technologies behind its success is called AJAX. Scores
of web developers are trying to achieve the same results in their endeavors.
Check out http://www.francisshanahan.com/zuggest.aspx to see what I mean.
Also see http://www.adaptivepath.com/publicat...ves/000385.php

I'm trying to do this in ASP.NET 1.x. I hope this explains things a bit
more.

Thanks again,
Roshawn
Nov 19 '05 #9
"Roshawn" <ud****@bellsouth.net> wrote in
news:ep**************@TK2MSFTNGP10.phx.gbl:
Thanks for the link.

If you all haven't noticed, there's a lot of talk on the web regarding
Google Suggest.

Wow very cool - I think a lot more sites are going to implement this
provided there is a good way to handle multi-browser support as well as the
database load.

In addition to the Javascript script remoting link I sent you, you could
also check out Dart's Live Controls. Dart Live Controls is a set of
prepackaged controls allowing dynamic client side callbacks in ASP.NET 1.1
Or I guess you could wait for ASP.NET 2.0 with it's built in IE only Client
Side Callbacks.

I'm already using the Thycotic remoting interface for a project of mine and
it works quite well and has a great price too : )
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #10
Thanks for the info.
Nov 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: middletree | last post by:
I have a menu that I use on my Intranet app, and while I did try to replace it recently, I ended up going back to it. It's built entirely with javascript, and works great. However, there are...
6
by: Web Spinner | last post by:
I am running Windows 2000 and I can't seem to get my JavaScript working with ASP. I placed my HTML code in a file called x.asp under c:\Inetpub\wwwroot, and I placed my JavaScript code in a file...
2
by: Lawrence San | last post by:
I'm trying to test some simple JavaScript meant to speed up the display of my Web pages for readers using modems, but I have a fast DSL connection and I'm having trouble visualizing how effective...
3
by: ICode | last post by:
Hi, all, I am currently updating links for a site almost daily. I have set the META tags to allow for no caching so that as soon as the site is updated on the server, the new changes can be...
9
by: MStepansky | last post by:
Whats the difference between Javascript and Java3D? I mean can Javascript do like Java3D can? Or is Java3D on top of Javascript (the core, if thats what it is)? Then I should learn Javascript...
21
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
6
by: Aaron Gray | last post by:
Hi, Is there any tool that will concatinate JavaScript files compacting them spacewise and removing comment fields ? I have some sed script that sort of does the job but was wondering if there...
6
by: Venkatesh | last post by:
Hello All, I have couple of doubts regarding the concept of on-demand javascript loading using javascript code. I could see on the net different techniques for achieving this - techniques like:...
4
by: Garg | last post by:
Hi All, Can you suggest me the a good editor fot HTML and Javascript. It will be good if that also support JSP. thanks Tarun Garg
2
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.