p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 3.5 Basics (http://p2p.wrox.com/forumdisplay.php?f=351)
-   -   Java applets in ASP.NET webform (http://p2p.wrox.com/showthread.php?t=80579)

arnab-jit August 19th, 2010 06:05 AM

Java applets in ASP.NET webform
 
I want to run a java applet in a ASP.NET webform. Please tell me the procedure.

samjudson August 19th, 2010 06:47 AM

An ASP.Net webform is simply an HTML page with some processing behind it. So simply edit the page and put the applet HTML in it.

arnab-jit August 19th, 2010 06:51 AM

Java applets and ASP.NET webform
 
I've done but, It is throwing an exception(can not find class file).

samjudson August 19th, 2010 06:55 AM

Well it is highly unlikely that this has anything to do with it being an ASP.Net webform.

arnab-jit August 19th, 2010 07:02 AM

Java applets and ASP.NET webform
 
I create a folder in my website called 'JavaApplets' then store the .class file of applet. Then i use it in Default.aspx like:

<applet code="/JavaApplets/MyApplet.class" width="100" height="100"></applet>

samjudson August 19th, 2010 07:15 AM

The only thing I can think is that your url is an absolute URL, and if your ASP.Net application is in a subdirectory (e.g. WebSite1) then the URL in there should be "JavaApplets/MyApplet.class", not "/JavaApplets/MyApplet.class".

arnab-jit August 19th, 2010 07:20 AM

Java applets and ASP.NET webform
 
No I've changed the virtual path of the website like ' / '.


All times are GMT -4. The time now is 03:30 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.