469,580 Members | 1,898 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,580 developers. It's quick & easy.

Passing Parameters to Windows Form Control FROM IE

Hi All,

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
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.
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()
public string Output
get { return m_Output;}
m_Output = value;

public string DocType
get { return m_DocType;}
m_DocType= value;



<%@ Page language="c#" Codebehind="MailMergeSelector.aspx.cs"
AutoEventWireup="false" Inherits="TestWriteALetter.MailMergeSelector" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<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"
<LINK href="/TestWriteALetter/Include/AppCSS.css" type="text/css"
<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: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'>
Nov 18 '05 #1
0 2011

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Miroslav Ostojic | last post: by
reply views Thread by Neelima Godugu | last post: by
2 posts views Thread by GatorBait | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.