PC Review


Reply
Thread Tools Rate Thread

Access .Net through Javascript

 
 
Mark Broadbent
Guest
Posts: n/a
 
      7th Feb 2005
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!


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      7th Feb 2005
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


 
Reply With Quote
 
Mark Broadbent
Guest
Posts: n/a
 
      7th Feb 2005
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!
"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Sam Martin
Guest
Posts: n/a
 
      7th Feb 2005
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??



"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      7th Feb 2005
Sam,

You mean probably the rich client, that was what I was thinking as well
about.

However it would need a lot of security settings from which I don't know if
it is possible. Again is the main option in my opinion when it is develloped
to prevent access to the files. That was the reason why I did not show it
earlier.

http://msdn.microsoft.com/msdnmag/is...h/default.aspx

Cor


 
Reply With Quote
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      8th Feb 2005
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/a...e/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
----------------------------------------------------------


"Mark Broadbent" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using javascript to access asp.net controls Andy B. Microsoft ASP .NET 3 16th Jul 2009 08:26 PM
Gridview access from Javascript marksommerville@yahoo.com Microsoft ASP .NET 7 29th Nov 2007 05:51 AM
Access, Javascript,and SQL =?Utf-8?B?Q2hyaXM=?= Microsoft Access Form Coding 2 14th Nov 2007 03:28 PM
Access IE USERNAME for use in Javascript =?Utf-8?B?VGVycnkgSGFsZQ==?= Windows XP Internet Explorer 2 2nd Oct 2007 03:07 AM
Running Access SQL using Javascript =?Utf-8?B?QW5keSBEb3JwaA==?= Microsoft Access External Data 1 16th Nov 2005 08:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 PM.