473,671 Members | 2,261 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 1544
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***@compuser ve.com> wrote in message
news:e3******** *************** ***@posting.goo gle.com...
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*******@Atre vido.net> wrote in message news:<#J******* *******@TK2MSFT NGP12.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***@compuser ve.com> wrote in message
news:e3******** *************** ***@posting.goo gle.com...
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***@compuserv e.com (Bill Zack) wrote in message news:<e3******* *************** ****@posting.go ogle.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*******@Atre vido.net> wrote in message news:<#J******* *******@TK2MSFT NGP12.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***@compuser ve.com> wrote in message
news:e3******** *************** ***@posting.goo gle.com...
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
17597
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. Yahoo store was originally written in Lisp. c. Emacs The issues with these will probably come up, so I might as well mention them myself (which will also make this a more balanced
2
6907
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 a type mismatch. It is positively because of the boolean(java primitive)parameter. It goes fine if I change this parameter to int or String. This inteface has a lot more methods which works fine, it is just the
6
1207
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 understand what is going on, but I've never developed anything larger than a few simple pages. I have a rather deep understanding of .NET and the BCL but I have no experience with ASP.NET perse.
7
1848
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 :-) Its a very simple situation: I have 1 page that serves to create and update users and another page to add roles to the user.
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 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...
6
3934
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 signal to server. This seems to be achievable with body unload events, but it is little too much, as even if user navigate within my site, this event will be generated, this can be avoided by handling onclick of each link, so that I'll know exactly...
7
2391
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 when you click a button. The button is an invisible GIF with an anchor that calls slide() onClick. The animation works fine in IE but in Firefox I'm getting a series of afterimages as the function moves the layer to the goal. The image is painted...
4
7911
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 while he doesn't leave). I'm using the window.onunload event to trigger the unlocking of a page, but I don't want the page to be unlocked when a postback or a refresh occurs...I only want it when the user goes to another page or closes the...
15
2361
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 things look better visually for that, I created a listbox under the text box. She enters the number in the text box, clicks another button I added and the number is stored in the list box. Then my plan was to grab all those numbers from the list box...
0
8476
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
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
8917
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8821
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
7437
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...
1
6229
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4407
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2812
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
2
2051
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.