Access .Net through Javascript

M

Mark Broadbent

Does anybody know of any good url references that give good examples of
accessing .net dlls or exes through Javascript. I cannot do this through
aspx or asp pages but only client side .html code.

--
Best Regards,

Mark

Mark Broadbent

mcad,mcdba,mcse+i
emailto: newsgroupsATmettayyaDOTgotadslDOTcoDOTuk
remove AT with '@' and DOT with '.' -please do not send spam or address will
be changed!
 
C

Cor Ligthert

Mark,

With a good browswer you cannot reach a database which is on the clientside
using Javascript.

Javascript is developped to protect users from that.

Cor
 
M

Mark Broadbent

Cor, thanks but that is not the question I asked. I want to call .NET code
(either a dll or exe) from Javascript. The security settings on a browser
can be changed -so this should be possible.

--
Best Regards,

Mark

Mark Broadbent

mcad,mcdba,mcse+i
emailto: newsgroupsATmettayyaDOTgotadslDOTcoDOTuk
remove AT with '@' and DOT with '.' -please do not send spam or address will
be changed!
 
S

Sam Martin

database? ?

can you not access an the properties/methods of a .NET control running on
the client IE?
can remember syntax, but where you embed a .NET object using <object> tag,
referencing a server side .net dll and class??
 
A

Alvin Bruney [MVP]

One approach is to use a webservice. So you expose your business layer thru
the webservice. On your client, you attach your javascript to the webservice
using the webservice behavior. This is strictly client-side.
http://msdn.microsoft.com/workshop/author/webservice/overview.asp

Another approach is to use XML-HTTP. In this approach, you would instantiate
the xml-http object and use it to make calls into the .net layer from the
client/html page.

Both these approaches rely on IE 5+ only.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://tinyurl.com/27cok
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top