473,513 Members | 2,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting away from JavaScript using .NET?

I realize that IE now hosts the Common Language Runtime and that you
can host Windows Forms controls in IE6 the way you can host ActiveX
controls and Java applets. I originally got excited thinking that I
could write my IE scripts in C# and avoid the use of JavaScript. Then
sanity struck, and I realized that you would need far more than just
the CLR for that to happen.

Nevertheless I am wondering if I could not achieve much of the same
results by pushing all my logic into a very very smart Window Forms
control that just gets invoked from a very little bit of JavaScript.

The application that I am thinking about uses Javascript and XSLT to
do data manipulation and display on the IE6 client.

Any opinions?

Thanks
Bill Zack
Jul 21 '05 #1
4 1525
Sure, you can write a nice rich control using Windows Forms, and host it on
the HTML page. Or you can skip putting it inside the HTML page and just put
the .exe on the server. Clients with the CLR will have IE run the EXE with
restricted permissions applied (by default). This is called "no touch
deployment". If you're doing a lot of transforms and client-side stuff,
this could create a much nicer interface for your clients, so long they have
the .NET Framework installed.
-mike
MVP

"Bill Zack" <wz***@compuserve.com> wrote in message
news:e3**************************@posting.google.c om...
I realize that IE now hosts the Common Language Runtime and that you
can host Windows Forms controls in IE6 the way you can host ActiveX
controls and Java applets. I originally got excited thinking that I
could write my IE scripts in C# and avoid the use of JavaScript. Then
sanity struck, and I realized that you would need far more than just
the CLR for that to happen.

Nevertheless I am wondering if I could not achieve much of the same
results by pushing all my logic into a very very smart Window Forms
control that just gets invoked from a very little bit of JavaScript.

The application that I am thinking about uses Javascript and XSLT to
do data manipulation and display on the IE6 client.

Any opinions?

Thanks
Bill Zack

Jul 21 '05 #2
Mike:

Great reply.

One question though. Are there any restrictions on what it can do
while 1) hosted in IE6 and run from HTML page, or 2) as a Windows
Forms Exe run from a URL.

Our only hard and fast requirement is that the client only has IE6 and
the .NET Framework installed and we cannot update anything (registery,
file system) permanently on their system. (Using the Download Cache
and/or Isolated Storage would be OK.)

Thanks
Bill Zack
"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> wrote in message news:<#J**************@TK2MSFTNGP12.phx.gbl>...
Sure, you can write a nice rich control using Windows Forms, and host it on
the HTML page. Or you can skip putting it inside the HTML page and just put
the .exe on the server. Clients with the CLR will have IE run the EXE with
restricted permissions applied (by default). This is called "no touch
deployment". If you're doing a lot of transforms and client-side stuff,
this could create a much nicer interface for your clients, so long they have
the .NET Framework installed.
-mike
MVP

"Bill Zack" <wz***@compuserve.com> wrote in message
news:e3**************************@posting.google.c om...
I realize that IE now hosts the Common Language Runtime and that you
can host Windows Forms controls in IE6 the way you can host ActiveX
controls and Java applets. I originally got excited thinking that I
could write my IE scripts in C# and avoid the use of JavaScript. Then
sanity struck, and I realized that you would need far more than just
the CLR for that to happen.

Nevertheless I am wondering if I could not achieve much of the same
results by pushing all my logic into a very very smart Window Forms
control that just gets invoked from a very little bit of JavaScript.

The application that I am thinking about uses Javascript and XSLT to
do data manipulation and display on the IE6 client.

Any opinions?

Thanks
Bill Zack

Jul 21 '05 #3
I just heard from an associate fo min that Webservice.htc is not
supported by Microsoft. Is tha true? If so then it would push us
towards no-touch deploymnt of a WinForms application.

Thanks
Bill Zack
wz***@compuserve.com (Bill Zack) wrote in message news:<e3**************************@posting.google. com>...
Mike:

Great reply.

One question though. Are there any restrictions on what it can do
while 1) hosted in IE6 and run from HTML page, or 2) as a Windows
Forms Exe run from a URL.

Our only hard and fast requirement is that the client only has IE6 and
the .NET Framework installed and we cannot update anything (registery,
file system) permanently on their system. (Using the Download Cache
and/or Isolated Storage would be OK.)

Thanks
Bill Zack
"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> wrote in message news:<#J**************@TK2MSFTNGP12.phx.gbl>...
Sure, you can write a nice rich control using Windows Forms, and host it on
the HTML page. Or you can skip putting it inside the HTML page and just put
the .exe on the server. Clients with the CLR will have IE run the EXE with
restricted permissions applied (by default). This is called "no touch
deployment". If you're doing a lot of transforms and client-side stuff,
this could create a much nicer interface for your clients, so long they have
the .NET Framework installed.
-mike
MVP

"Bill Zack" <wz***@compuserve.com> wrote in message
news:e3**************************@posting.google.c om...
I realize that IE now hosts the Common Language Runtime and that you
can host Windows Forms controls in IE6 the way you can host ActiveX
controls and Java applets. I originally got excited thinking that I
could write my IE scripts in C# and avoid the use of JavaScript. Then
sanity struck, and I realized that you would need far more than just
the CLR for that to happen.

Nevertheless I am wondering if I could not achieve much of the same
results by pushing all my logic into a very very smart Window Forms
control that just gets invoked from a very little bit of JavaScript.

The application that I am thinking about uses Javascript and XSLT to
do data manipulation and display on the IE6 client.

Any opinions?

Thanks
Bill Zack

Jul 21 '05 #4
Hi Bill,
I just heard from an associate fo min that Webservice.htc is not

supported by Microsoft.

You can download WebService.htc file from the following link:
WebService Behavior
http://msdn.microsoft.com/downloads/...sp?url=/downlo
ads/samples/internet/behaviors/library/webservice/default.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5

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

Similar topics

303
17421
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
2
6890
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on...
6
1204
by: Tom Jones | last post by:
Hi, I have 8 years experience developing commerical software for Windows (C/C++/x86 Assembler/C#). What I have zero experience with is "developing for the web." I mean, I can look at HTML and...
7
1839
by: Simon Harvey | last post by:
Hi everyone, I'm having a frustrating problem and I don't know how to fix it without totally redoing a very complicated couple of pages on my site. I really hope some kind soul can help me :-) ...
5
287
by: Bill Zack | last post by:
I realize that IE now hosts the Common Language Runtime and that you can host Windows Forms controls in IE6 the way you can host ActiveX controls and Java applets. I originally got excited...
6
3916
by: hemant.singh | last post by:
Hi all, I am trying to get a way by which I'll know exactly when user goes out of my site by clicking on close button in browser, So that w/e user click close button in browser, I can send a...
7
2381
by: raylaur | last post by:
I'm using a javascript "slide" function to move a <div> layer in 10 pixel increments from one location on a page to another. The layer contains a GIF image. It's basically a side panel that flies out...
4
7900
by: nrocha | last post by:
Hello, I've been trying to detect when a user closes a page or navigates away from it. This is part of a solution for locking pages (that is, if a user enters a page, no one else can enter it...
15
2341
by: Doogie | last post by:
I have a .net app that a user currently enters a number in a text box, hits a button and a data call is executed. She wants the ability to enter in multiple numbers (up to 100). So to make...
0
7153
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...
0
7373
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
7432
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...
0
7519
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...
0
5677
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,...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
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...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
796
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.