473,651 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET Equivalent of an Applet?

Does the .NET framework provide any equivalent of an applet?

I've under Winforms Hosted in IE - but Security is a major headache.

Is there a way to bypass these security headaches? Can I sign the control,
etc. etc?
Oct 17 '07 #1
11 3331
>Does the .NET framework provide any equivalent of an applet?
You mean a Java applet?

Have you looked at Silverlight?
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Oct 17 '07 #2
On Oct 17, 4:15 pm, Spam Catcher <spamhoney...@r ogers.comwrote:
Does the .NET framework provide any equivalent of an applet?

I've under Winforms Hosted in IE - but Security is a major headache.

Is there a way to bypass these security headaches? Can I sign the control,
etc. etc?
As Mattias suggested there is silverlight - which has the advantage of
being cross platform, there is even a port underway for linux, known
as moonlight. The biggest problem with silverlight, is really that it
is so new - there aren't a lot of controls for it (that could have
changed by now, the last time I lookes was about 3 or 4 months ago),
and so unless your doing media work, it might not be up to what you
need to do.

The other option is the xbap - or xml browser application. They can
be hosted inside of an iframe in an asp or html page. xbap's are
click once applications that run inside of a sandbox, which is there
biggest problem. Right now, that sandbox, IMHO, is way to
restrictive. It is supposedly going to loosen over time, but right
now it really depends on what you want to do and who your audience is
that should be the determining factor.

So, describe what you want the applet to do (in a general sense), and
maybe you might get a better, more specific answer :)

--
Tom Shelton

Oct 17 '07 #3
Mattias Sjögren <ma************ ********@mvps.o rgwrote in news:
#z************* *@TK2MSFTNGP02. phx.gbl:
>>Does the .NET framework provide any equivalent of an applet?

You mean a Java applet?

Have you looked at Silverlight?
Ya silverlight comes close - but unfortunately it requires yet another
runtime. <sigh>

Also the tools don't seem to be production quality?

I guess silverlight is Microsoft's answer?
Oct 18 '07 #4
Tom Shelton <to*********@co mcast.netwrote in
news:11******** **************@ v29g2000prd.goo glegroups.com:
As Mattias suggested there is silverlight - which has the advantage of
being cross platform, there is even a port underway for linux, known
as moonlight. The biggest problem with silverlight, is really that it
is so new - there aren't a lot of controls for it (that could have
changed by now, the last time I lookes was about 3 or 4 months ago),
and so unless your doing media work, it might not be up to what you
need to do.
I basically want to deploy an application via the browser. The
application needs to send and receive state information continously from
a central server.

I could use AJAX for this type of thing, but I have not found the
reliablity to be there (i.e. 8 hour work days).

The other option is the xbap - or xml browser application. They can
be hosted inside of an iframe in an asp or html page. xbap's are
click once applications that run inside of a sandbox, which is there
biggest problem. Right now, that sandbox, IMHO, is way to
restrictive. It is supposedly going to loosen over time, but right
now it really depends on what you want to do and who your audience is
that should be the determining factor.
So true - the sandbox is much too restrictive. It would be nice to be
able to make a network connection back to the host with our a security
exception!
So, describe what you want the applet to do (in a general sense), and
maybe you might get a better, more specific answer :)
I'm building a client which talks to a central server. The client
controls the state of the user on the server side. When the server
detects that the user is in a particular state... and has a particular
piece of work for the user, the server will send the work to the client.

Couple issues:

1. The information must be transmitted to the client ASAP (i.e. no
delay!)

2. Application must be deploy via a web browser.

If this were a desktop app, this would be a piece of cake... but because
it's in a browser, I'm struggling with the technological limitations.

Here are the technologies I looked at:

1. Java
2. .NET WinForms Control - Too much security
3. Silverlight - Too new, yet another runtime
4. Flash/Flex - no skills
5. AJAX - don't think it's reliable enough and requires polling which
seems to cause issues with IE

Users will be intranet users - but I won't be able to change too many
security settings, so I'm stuck with the basic IE settings.

So I was hoping .NET would have something equivalent to Java Applets /
Java Web Start which has a decent set of permissions...b ut I guess not?
Oct 18 '07 #5
On Oct 18, 1:17 pm, Spam Catcher <spamhoney...@r ogers.comwrote:
Tom Shelton <tom_shel...@co mcast.netwrote innews:11****** *************** *@v29g2000prd.g ooglegroups.com :
As Mattias suggested there is silverlight - which has the advantage of
being cross platform, there is even a port underway for linux, known
as moonlight. The biggest problem with silverlight, is really that it
is so new - there aren't a lot of controls for it (that could have
changed by now, the last time I lookes was about 3 or 4 months ago),
and so unless your doing media work, it might not be up to what you
need to do.

I basically want to deploy an application via the browser. The
application needs to send and receive state information continously from
a central server.

I could use AJAX for this type of thing, but I have not found the
reliablity to be there (i.e. 8 hour work days).
The other option is the xbap - or xml browser application. They can
be hosted inside of an iframe in an asp or html page. xbap's are
click once applications that run inside of a sandbox, which is there
biggest problem. Right now, that sandbox, IMHO, is way to
restrictive. It is supposedly going to loosen over time, but right
now it really depends on what you want to do and who your audience is
that should be the determining factor.

So true - the sandbox is much too restrictive. It would be nice to be
able to make a network connection back to the host with our a security
exception!
So, describe what you want the applet to do (in a general sense), and
maybe you might get a better, more specific answer :)

I'm building a client which talks to a central server. The client
controls the state of the user on the server side. When the server
detects that the user is in a particular state... and has a particular
piece of work for the user, the server will send the work to the client.

Couple issues:

1. The information must be transmitted to the client ASAP (i.e. no
delay!)

2. Application must be deploy via a web browser.

If this were a desktop app, this would be a piece of cake... but because
it's in a browser, I'm struggling with the technological limitations.

Here are the technologies I looked at:

1. Java
2. .NET WinForms Control - Too much security
3. Silverlight - Too new, yet another runtime
4. Flash/Flex - no skills
5. AJAX - don't think it's reliable enough and requires polling which
seems to cause issues with IE

Users will be intranet users - but I won't be able to change too many
security settings, so I'm stuck with the basic IE settings.

So I was hoping .NET would have something equivalent to Java Applets /
Java Web Start which has a decent set of permissions...b ut I guess not?
Hmmm, sounds like an XBAP is almost perfect... The big problem that
you would have to overcome is the security restrictions on network
communication. Off the top of my head, the way to overcome this would
depend on if you were going to use .NET 3.0 or .NET 3.5 :) If in 3.0,
then you could write a simple asp.net page, that you could
periodically request from the server that could esentially pull data
from the server and return it to you - it could even be a serialized
object, as long as it is xml serialization (or xaml). One word of
warning on this approach - if you plan on displaying web content in a
frame control in 3.0 in an xbap hosted inside of an iframe, forget
about it.

In 3.5, you can actually use WCF web services from an XBAP. Still
sort of a polling method, but maybe a little cleaner. Personally, I
think they should do like they do in java and allow you to open a
connection back to your server of origin with a socket....

--
Tom Shelton

Oct 18 '07 #6
This would left you with :
- Java

You may want also to post about the ogrinal security problem you have but
if I remember you can cojnect with the originating site but not with third
party sites...
--
Patrice
"Spam Catcher" <sp**********@r ogers.coma écrit dans le message de news:
Xn************* *************** ******@127.0.0. 1...
Tom Shelton <to*********@co mcast.netwrote in
news:11******** **************@ v29g2000prd.goo glegroups.com:
>As Mattias suggested there is silverlight - which has the advantage of
being cross platform, there is even a port underway for linux, known
as moonlight. The biggest problem with silverlight, is really that it
is so new - there aren't a lot of controls for it (that could have
changed by now, the last time I lookes was about 3 or 4 months ago),
and so unless your doing media work, it might not be up to what you
need to do.

I basically want to deploy an application via the browser. The
application needs to send and receive state information continously from
a central server.

I could use AJAX for this type of thing, but I have not found the
reliablity to be there (i.e. 8 hour work days).

>The other option is the xbap - or xml browser application. They can
be hosted inside of an iframe in an asp or html page. xbap's are
click once applications that run inside of a sandbox, which is there
biggest problem. Right now, that sandbox, IMHO, is way to
restrictive. It is supposedly going to loosen over time, but right
now it really depends on what you want to do and who your audience is
that should be the determining factor.

So true - the sandbox is much too restrictive. It would be nice to be
able to make a network connection back to the host with our a security
exception!
>So, describe what you want the applet to do (in a general sense), and
maybe you might get a better, more specific answer :)

I'm building a client which talks to a central server. The client
controls the state of the user on the server side. When the server
detects that the user is in a particular state... and has a particular
piece of work for the user, the server will send the work to the client.

Couple issues:

1. The information must be transmitted to the client ASAP (i.e. no
delay!)

2. Application must be deploy via a web browser.

If this were a desktop app, this would be a piece of cake... but because
it's in a browser, I'm struggling with the technological limitations.

Here are the technologies I looked at:

1. Java
2. .NET WinForms Control - Too much security
3. Silverlight - Too new, yet another runtime
4. Flash/Flex - no skills
5. AJAX - don't think it's reliable enough and requires polling which
seems to cause issues with IE

Users will be intranet users - but I won't be able to change too many
security settings, so I'm stuck with the basic IE settings.

So I was hoping .NET would have something equivalent to Java Applets /
Java Web Start which has a decent set of permissions...b ut I guess not?

Oct 19 '07 #7
On Thu, 18 Oct 2007 19:12:34 GMT, Spam Catcher
<sp**********@r ogers.comwrote:
>Mattias Sjögren <ma************ ********@mvps.o rgwrote in news:
#z************ **@TK2MSFTNGP02 .phx.gbl:
>>>Does the .NET framework provide any equivalent of an applet?

You mean a Java applet?

Have you looked at Silverlight?

Ya silverlight comes close - but unfortunately it requires yet another
runtime. <sigh>

Also the tools don't seem to be production quality?

I guess silverlight is Microsoft's answer?
Alas, there's no getting away from runtimes. Every solution requires a
runtime:

- Flash
- Applets (Java JRE)
- Silverlight
- XBAP (.NET Framework 3)

--
http://bytes.thinkersroom.com
Oct 19 '07 #8
"Rad [Visual C# MVP]" <ra*@nospam.com wrote in
news:ed******** *************** *********@4ax.c om:
Alas, there's no getting away from runtimes. Every solution requires a
runtime:

- Flash
- Applets (Java JRE)
- Silverlight
- XBAP (.NET Framework 3)
True, but Flash and Applets have been around for ages. .NET already has a
runtime (the framework) ... so I'm surprised it's not included in the base
framework itself, but it's yet another installation.
Oct 19 '07 #9
Tom Shelton <to*********@co mcast.netwrote in news:1192738638 .711523.44120
@t8g2000prg.goo glegroups.com:
In 3.5, you can actually use WCF web services from an XBAP. Still
sort of a polling method, but maybe a little cleaner. Personally, I
think they should do like they do in java and allow you to open a
connection back to your server of origin with a socket....
My thoughts exactly! Without the ability to open a socket to the origin
server, it really limits the type of browser applications one can build.

Polling is fine for some stuff, but for application which need instant
notification (and the ability to scale), polling sucks.

Thanks for the information about XBAP... I'll take a look at it :-)
Oct 19 '07 #10

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

Similar topics

1
9516
by: nathanlaan | last post by:
This is the stupidest thing I have ever seen. Java 1.2, 1.3, and 1.4.1, and 1.4.2 all define the Applet.getDocumentBase() method differently! How am I supposed to get the directory of the document in which the applet is embedded (like Java 1.3) using Java 1.4.2??? http://java.sun.com/products/jdk/1.2/docs/api/java/applet/Applet.html#getDocumentBase() http://java.sun.com/j2se/1.3/docs/api/java/applet/Applet.html#getDocumentBase()
0
9870
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
1
2938
by: Charlie Kim | last post by:
Here is gnome applet source of mine. -------------------------------------------------- #!/usr/bin/env python import pydic import gtk import gnome.applet
3
6767
by: Andy Fish | last post by:
Hi, I have a web-based application and some of the UI I want to incorporate is just too complicated for javascript. Instead of using a Java Applet, I would like to have the user download a .net assembly containing a form and run that in a browser. I'm happy for the form to run in an applet-like sandbox (cannot write to local hard disk, can only talk to the server it came from etc). What I don't want is for the user to have to install...
8
3372
by: DKM | last post by:
Here are the source code files to a Java applet that utilizes LiveConnect to communicate with Javascript, and the HTML file. The thing works both in IE 6.0 and FireFox 1.4. but with some problems. IE crashes when one refreshes the page or leave the page. This happens only after calling the Java method more than once. It does not crash if the Java method is called just once and then the page is refreshed. FireFox does not crash at all...
3
1786
by: _R | last post by:
I'd like to build a small web app that models an electronic circuit. Easily done on desktop. In the web version, the controls could be done via ASP.net, but graphics would have to be built and sent to the client on the fly. Do-able on client side in the java runtime, but how could this be done within .NET? Any provision within the 2005 beta? ..
0
5658
by: ankur | last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER MY HttpChatApplet sccessfully Loaded from ChatDispatch but running on some another PC HttpChatApplet not loaded my Coad ChatDispatch.java
4
7814
by: tudyfruity18 | last post by:
I'm suppose to write an applet that contains two buttons Investment calculator and Loan Calculator. When the Investment Calculator button is clicked, a frame appears in a new window for calculating future investment values. When you click Loan Calculator button, a frame appears in a separate new window for computong loan payments. Here's my coding: // Lab3.java: import java.awt.*; import java.awt.event.*; import javax.swing.*; ...
1
2378
by: sheephead86 | last post by:
Hi, I'm pretty new to java, and I have a small problem involving drawing a rectangle on a java applet.Firstly this is not a plea for someone to help me with this peice of work, I just need pointing in the right direction. Ok the problem. I am creating a program that ask the user to input a height value, the program will then do a calculation and create a golden ratio width. The type of both the height and the width are double. This is...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8695
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8576
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.