473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Calling Java applet from a user control

Is there a limitation in ASP.NET in this regard? From the aspx code
below, I can successfully call a Java applet. If I try the identical
thing in a user control ascx however, the control loads and hangs.
The Java console offers no clues. The server serves the aspx page
that contains the control, view source shows the expected html.
However, the applet does nothing. I'm integrating Quadbase
ExpressReport into a site. TIA.
<%@ Page language="c#" Codebehind="ReportView.aspx.cs"
AutoEventWireup="false" Inherits="MSWMD.ReportView" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Report</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
xxx <APPLET id="Object1" height="100%"
archive="/lib/ReportViewerWithChart.jar" width="100%"
code="quadbase.reportdesigner.ReportViewer.Viewer" VIEWASTEXT>
<PARAM NAME="filename" VALUE="d:/program
files/EspressReport/Templates/<%=reportName%>.rpt">
<PARAM NAME="cabbase" VALUE="/lib/ReportViewerWithChart.cab">
</APPLET> &nbsp; yyy
</body>
</HTML>
Nov 18 '05 #1
2 7342
Hi Mark,

Thank you for posting to the MSDN newsgroups.

I can call a Java Applet successfully from a user control. The followings
are my testing steps. Please try them on your side.

1. Create a simple Java Applet. (I am using Microsoft Visual J++ 6.0 Pro to
create a default Java Applet.)

2. Create a default web application using VS.NET 2003.

3. Copy the Applet1.class file to the web application folder.

4. Add a default user control to the web application.

5. Add the following HTML code in the user control.

<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="WebUserControl1.ascx.cs"
Inherits="DynamicControl.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<APPLET height="200" width="320" code="Applet1.class" name="Applet1"
VIEWASTEXT>
<PARAM NAME="foreground" VALUE="FFFFFF">
<PARAM NAME="background" VALUE="008080">
<PARAM NAME="label" VALUE="This string was passed from the HTML host.">
</APPLET>

5. Put the user control on the web form.

<uc1:WebUserControl1 id="WebUserControl11"
runat="server"></uc1:WebUserControl1>

6. Build and run the web application.

If I have misunderstood your concern, please feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #2
In the midst of doing some other changes, this problem went away.
It's unknown what the cause was.
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
5
by: Rowland | last post by:
Hi, I know this question has prob. been asked a million times, but I couldn't find it in the FAQ, so here goes : I'm trying to write a Java applet to call a dll that resides on the web server...
3
by: Larry Martin | last post by:
I am trying to run a Java Applet on my ascx page and am getting an IO exception when IE6 tries to load the applet. It seems a lot of others are getting the same problem but a search of the web did...
3
by: Jakub Gutkowski | last post by:
Hi, How can I call JavaScript from C#? I've create a Window User Control, that I put on ASP.NET site as Object tag. Now, while some function from my control is being proceed I need to call a...
7
by: Mario | last post by:
I've been reading some Sun Java articles where they say Applets cannot import dlls and cannot write to disk. (This does NOT apply to applications, only to Applets.) Supposedly, this is NOT...
5
by: farseer | last post by:
Hi, i have an applet java applet which basically serves as a stock streamer..it connects to a data feed and show the bid/ask/last/etc info for a portfolio of stocks in real time. I would like to...
1
by: dishal | last post by:
Can anyone help me please? How do I convert these codes to launch from a JFrame instead of a Java Applet? A simple program where the user can sketch curves and shapes in a variety of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.