Equivalent to JAVA Applets

  • Thread starter Thread starter shreesh
  • Start date Start date
S

shreesh

What is equivalent to JAVA Applets in ASP.NET?
Like in JAVA Applet it is first downloaded to the clients
computer and then user can use it interactively,how it
can be done in ASP.NET WebApplication?
 
You can use WinForm user controls embedded in IE (and only for IE)
Write your user control in a separated assembly, and copy it to a web
directory (not the "bin" directory).
Then, in your HTML code add:

<object id="objId" classid="AssemblyName.dll#MyNamespace.MyControl" >

where AssemblyName.dll is the assembly containing the winform control,
and MyNamespace.MyControl is the full namespace and class name of the
control.

Keep in mind, that you will have some security restrictions.
 
Back
Top