473,406 Members | 2,293 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,406 software developers and data experts.

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
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 18 '05 #1
0 2229

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

Similar topics

2
by: zlatko | last post by:
There is a form in an Access Project (.adp, Access front end with SQL Server) for entering data into a table for temporary storing. Then, by clicking a botton, several action stored procedures...
3
by: Joe Bloggs | last post by:
Does anyone know if its possible to pass parameters or the values of Request.QueryString from a web page to a custom control class? I'm using a C# Web Application. For Example I have Web Page1...
3
by: Miroslav Ostojic | last post by:
Hallo people... I desperatly need help with one problem... I've got this .net web application that I need to pass some parameters from, to a payment form page some other place. My problem is...
11
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
0
by: Neelima Godugu | last post by:
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 above. I have...
1
by: Mikey G | last post by:
Hi, I created a simple VB.NET 2003 application through Visual Studio that connects to a MySQL database and loads a table into a Dataset, and then displays that table information in a DataGrid on a...
2
by: GatorBait | last post by:
Hi everyone, I've been using VB.NET for about 6 weeks now and I keep stumbling on a concept that I hope someone can clear up for me. Each event of a control has 2 parameters, sender and e....I...
13
by: Deano | last post by:
Apparently you can only do this with one value i.e Call MyAssetLocationZoom(Me!txtLocation, "Amend data") This runs; Public Sub MyAssetLocationZoom(ctl As Control, formName As String) On...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.