 |
| ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

August 19th, 2010, 06:05 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Java applets in ASP.NET webform
I want to run a java applet in a ASP.NET webform. Please tell me the procedure.
|
|

August 19th, 2010, 06:47 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
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.
|
|

August 19th, 2010, 06:51 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Java applets and ASP.NET webform
I've done but, It is throwing an exception(can not find class file).
|
|

August 19th, 2010, 06:55 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
Well it is highly unlikely that this has anything to do with it being an ASP.Net webform.
|
|

August 19th, 2010, 07:02 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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>
|
|

August 19th, 2010, 07:15 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
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".
|
|

August 19th, 2010, 07:20 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Java applets and ASP.NET webform
No I've changed the virtual path of the website like ' / '.
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Embed MsWord in asp.net webform |
rajatake |
ASP.NET 2.0 Professional |
1 |
December 5th, 2006 11:29 AM |
| No more Java Applets for me... |
larry |
Javascript |
0 |
January 10th, 2006 10:42 AM |
| How to decompress Java applets |
bekim |
JSP Basics |
0 |
January 23rd, 2005 05:56 AM |
| java coding for 3dbargraph applets,,help!!!! |
s.vidya |
Java GUI |
0 |
October 15th, 2003 05:35 AM |
| 3d java applets,,,help!! |
s.vidya |
Java GUI |
0 |
October 15th, 2003 04:40 AM |
|
 |