[?] How can I use a C# assembly on a web client?

  • Thread starter Thread starter Leonardo Spina
  • Start date Start date
L

Leonardo Spina

I need to make the client (Internet Explorer) rua a class that I have
defined in an assembly which obviously is placed on the server in the
"bin" folder under the web root.
How can I use that object from client side script?
 
Leonardo,

You can not do this. The client just interprets script that is sent to
the browser from the server. To get objects to run on the client, you need
to emebed a windows control into the browser, which requires security
settings to be changed to trust the assembly.

If you want to go this route, check out the article titled "Using
Windows Forms Controls in Internet Explorer" located at (watch for line
wrap):

http://windowsforms.net/articles/iesourcing.aspx

Hope this helps.
 
It has always seemed to me that before you get very far down that road you
effectively really have a WinForms application. So why have the browser at
that point?

Nicholas Paldino said:
Leonardo,

You can not do this. The client just interprets script that is sent to
the browser from the server. To get objects to run on the client, you need
to emebed a windows control into the browser, which requires security
settings to be changed to trust the assembly.

If you want to go this route, check out the article titled "Using
Windows Forms Controls in Internet Explorer" located at (watch for line
wrap):

http://windowsforms.net/articles/iesourcing.aspx

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Leonardo Spina said:
I need to make the client (Internet Explorer) rua a class that I have
defined in an assembly which obviously is placed on the server in the
"bin" folder under the web root.
How can I use that object from client side script?
 
Back
Top