473,327 Members | 1,896 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,327 software developers and data experts.

Can not pass <param> from IE to user control

I meet the same problem below, please help me!

Thanks!
//written by some one

I have developed a windows forms user control, which I am going to host in
Internet Explorer..
I am familiar with the security settings requirement inorder to do the
above.
I have successfully gotten it working. The only problem I have is with
passing parameters to the Windows Forms User control from IE
I am using the Object tag to instantiate the IE object
I am using param tags inside object tag to pass paramaters but the values
are not set in the windows controls. I have properties defined inside the
Windows Controls with the same name as the param names.
I am not able to figure out why the param values passed are not set to the
property variables.
Any feedback will be appreciated.
CONTROL SOURCE CODE
========================
========================
using System;
using System.Collections;

using System.ComponentModel;

using System.Drawing;

using System.Data;

using System.Windows.Forms;

using Word = Microsoft.Office.Interop.Word;

using System.IO;
namespace Dovarri

{
public class WriteALetter : System.Windows.Forms.UserControl

{
private string m_Output;
private string m_DocType = "";

public WriteALetter()
{
}
// PARAMs
public string Output
{
get { return m_Output;}
set
{
m_Output = value;
}
}

// PARAMs
public string DocType
{
get { return m_DocType;}
set
{
m_DocType= value;
}
}
}

==========================

WEB FORM SOURCE CODE

<%@ Page language="c#" Codebehind="MailMergeSelector.aspx.cs"
AutoEventWireup="false" Inherits="TestWriteALetter.MailMergeSelector" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>MailMergeSelector</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5";
name="vs_targetSchema">
<LINK href="/TestWriteALetter/Include/AppCSS.css" type="text/css"
rel="stylesheet">
</HEAD>
<body MS_POSITIONING="GridLayout" bottommargin="5">
<form id="Form1" method="post" runat="server">
<asp:table id="Table1" runat="server" CssClass="AppMainBorderNoTab"
Height="220" HorizontalAlign="Center">
<asp:TableRow>
<asp:TableCell height="60%" CssClass="AppTextBlk">
<asp:Literal runat="server" ID="Literal1"></asp:Literal>
<OBJECT id=WriteALetter height=220 width = 320
classid=http:WriteALetterControl.dll#Dovarri.Write ALetter VIEWASTEXT>
<param name='Output' VALUE ='TEST'>
<param name='DocType' VALUE ='DIR'>
</OBJECT>
</asp:TableCell>
</asp:TableRow>
</asp:table>
</form>
</body>
</HTML>
Nov 16 '05 #1
0 1836

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

Similar topics

5
by: lvcha.gouqizi | last post by:
I embed an applet in my php script which has a parameter providing an input file for the jar. Does this file has size limit? The code is as follows: <APPLET ARCHIVE="myapplet.jar" WIDTH=372...
1
by: G Kannan | last post by:
Hey all! I have written a perl script to retrieve information from a HTML Form and insert the data into an Oracle database table. I am gettting the the following error message: "Use of...
0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
0
by: Tarren | last post by:
Hi: I would like to grab from the query string and set the param value for the media player plugin. Any quick code snippets or examples on how to do this? Do I set the OBJECT tag as...
2
by: Michael.Suarez | last post by:
The code in my DLL: /// <summary> /// db_task..file_master_list /// </summary> /// <param name="panConnection"> /// Pass the PanApp.Connection object by reference /// </param> /// <param...
8
by: Michael.Suarez | last post by:
So I wrote a DLL in 2.0. An example of one of the funtions is: /// <summary> /// db_task..file_master_list /// </summary> /// <param name="panConnection"> /// Pass the PanApp.Connection object...
4
by: msnews.microsoft.com | last post by:
hello every one i am using media player in internet explorer but i cannot access it directly in code behind, so do you know a way to access it? <object id="video123"...
2
by: Andrew Neiderer | last post by:
This is simple HTML, Java but I am really confused. I include the code since it is so small - ---------------------------------------------------------------------------- -- test.html -- ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.