Getting away from JavaScript using .NET?

  • Thread starter Thread starter Bill Zack
  • Start date Start date
B

Bill Zack

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
 
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
 
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
 
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
 
Back
Top