473,387 Members | 1,650 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,387 software developers and data experts.

referencing .NET framework namespaces in client side java script

Hello
I'd like to use .NET framework namespaces in client side java script.
For example i'd like to import System.Activator, in order to call
Activator.CreateInstance() method inside a client side java script function.
This function should executed in the client's browser!
10x
Rea
Jul 21 '05 #1
3 1562
First, I am not a Java wiz but I don't think that you can do this.

Second, why would you want to? Unless you had completes control over the
client side install (Intranet or something like that) you can't guarantee
that the client will have the framework installed.

"Rea Peleg" <re******@barak-online.net> wrote in message
news:eH*************@TK2MSFTNGP12.phx.gbl...
Hello
I'd like to use .NET framework namespaces in client side java script.
For example i'd like to import System.Activator, in order to call
Activator.CreateInstance() method inside a client side java script function. This function should executed in the client's browser!
10x
Rea

Jul 21 '05 #2
Thanks alot
I've tried using ActiveXObject() but it is raising a security warning I want
to avaoid.
I need some kind of a silent method to check at client side wether my .NET
assemblie
had been previously installed.
Thanks again
Rea
"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:e8**************@TK2MSFTNGP11.phx.gbl...
First, I am not a Java wiz but I don't think that you can do this.

Second, why would you want to? Unless you had completes control over the
client side install (Intranet or something like that) you can't guarantee
that the client will have the framework installed.

"Rea Peleg" <re******@barak-online.net> wrote in message
news:eH*************@TK2MSFTNGP12.phx.gbl...
Hello
I'd like to use .NET framework namespaces in client side java script.
For example i'd like to import System.Activator, in order to call
Activator.CreateInstance() method inside a client side java script

function.
This function should executed in the client's browser!
10x
Rea


Jul 21 '05 #3
You are going to run into similar issues like you did with ActiveX when you
try to use .NET. There are still security implications to deal with. Most
users systems that have .NET installed are not going to allow un-trusted
..NET code to run from an Internet site. CAS (Code Access Security) is simply
not set up by default for that and your component will most likely have
security exceptions to deal with.

What is it that you are trying to do, maybe someone here can offer an idea
on how to do it without problems.

"Rea Peleg" <re******@barak-online.net> wrote in message
news:O8**************@tk2msftngp13.phx.gbl...
Thanks alot
I've tried using ActiveXObject() but it is raising a security warning I want to avaoid.
I need some kind of a silent method to check at client side wether my .NET
assemblie
had been previously installed.
Thanks again
Rea
"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:e8**************@TK2MSFTNGP11.phx.gbl...
First, I am not a Java wiz but I don't think that you can do this.

Second, why would you want to? Unless you had completes control over the
client side install (Intranet or something like that) you can't guarantee that the client will have the framework installed.

"Rea Peleg" <re******@barak-online.net> wrote in message
news:eH*************@TK2MSFTNGP12.phx.gbl...
Hello
I'd like to use .NET framework namespaces in client side java script.
For example i'd like to import System.Activator, in order to call
Activator.CreateInstance() method inside a client side java script

function.
This function should executed in the client's browser!
10x
Rea



Jul 21 '05 #4

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

Similar topics

1
by: Mike Moore | last post by:
Can an asp.net button that is a server side control call a client side java function when the button is clicked? If so, please provide example.....thanks.,
5
by: tmb | last post by:
Is there a way to use ASP to 'push' a new image to the client every 15 seconds or so? I guess the entire page will have to be 're-sent' to the client but I'm not sure. I'm trying to 'rotate'...
12
by: Mark Broadbent | last post by:
Hi guys, just going through remoting at the moment and a couple of questions relating to .net in general has surfaced. Firstly I have seen in the designer that for the namespace and many of its...
5
by: Mong | last post by:
Hi, I have a webform with various asp controls on it such as textboxes and dropdownlists. I'm fairly new to asp.net coming from VB6 and am wondering when it's best to use client side events and...
3
by: Rea Peleg | last post by:
Hello I'd like to use .NET framework namespaces in client side java script. For example i'd like to import System.Activator, in order to call Activator.CreateInstance() method inside a client side...
2
by: MPA | last post by:
Hi, I am a newbee. All our applications so far were traditional client-server database applications. We are considering now writing our main application with Visual Studio .NET. Basically we...
3
by: jesper_lofgren | last post by:
Hello, I have a problem, i have a event in asp.net codebehind file that updating a datasource. If that update went well i want to refresh my treeview thats on another page. The script works...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
5
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.