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

Problem loading usercontrol since latest ie patch....

Hi,

Previously I was loading my .NET Usercontrol like this :

<OBJECT id="Obj" classid="Viewer.dll#Viewer.Viewer" width=105 height=20
VIEWASTEXT><param name="DONOTHING" value="1">
</OBJECT>

Everything was working great until the new patch came out and changed the
way the ActiveX / Usercontrols are loaded.

I tried using the 'inner html' example located at :
http://msdn.microsoft.com/library/de...ng_activex.asp

But the example did not work for my user control. How can I load my
usercontrol and my parameter in a way that is functional with this latest ie
update? Do I need to now specify a codebase ?

Here is what I tried :

<script language="JScript">
CreateControl( "EXAMPLE_DIV_ID",
"Viewer.dll#Viewer.Viewer",
"EXAMPLE_OBJECT_ID", "600", "400", "1",)
</script>

Supporting function :
// external_script.js
function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL, AUTOSTART)
{
var d = document.getElementById(DivID);
d.innerHTML = '<object classid=' + CLSID + ' id=' + ObjectID + ' width=' +
WIDTH + ' height=' + HEIGHT +'><param name="URL" value=' + URL + '><param
name="autoStart" value=' + AUTOSTART + '/>';
}

I get a nice big red X.....
Apr 15 '06 #1
4 1608
A UserControl is a server-side WebControl. I don't understand what you're
trying to do here.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Tim B" <Tim B@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
Hi,

Previously I was loading my .NET Usercontrol like this :

<OBJECT id="Obj" classid="Viewer.dll#Viewer.Viewer" width=105 height=20
VIEWASTEXT><param name="DONOTHING" value="1">
</OBJECT>

Everything was working great until the new patch came out and changed the
way the ActiveX / Usercontrols are loaded.

I tried using the 'inner html' example located at :
http://msdn.microsoft.com/library/de...ng_activex.asp

But the example did not work for my user control. How can I load my
usercontrol and my parameter in a way that is functional with this latest
ie
update? Do I need to now specify a codebase ?

Here is what I tried :

<script language="JScript">
CreateControl( "EXAMPLE_DIV_ID",
"Viewer.dll#Viewer.Viewer",
"EXAMPLE_OBJECT_ID", "600", "400", "1",)
</script>

Supporting function :
// external_script.js
function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL,
AUTOSTART)
{
var d = document.getElementById(DivID);
d.innerHTML = '<object classid=' + CLSID + ' id=' + ObjectID + ' width='
+
WIDTH + ' height=' + HEIGHT +'><param name="URL" value=' + URL + '><param
name="autoStart" value=' + AUTOSTART + '/>';
}

I get a nice big red X.....

Apr 15 '06 #2
Perhaps I used the wrong term, I am trying to host a Windows Form Contol in
IE.
Here is an example of how it used to work before the patch :

http://www.15seconds.com/issue/030610.htm
"Kevin Spencer" wrote:
A UserControl is a server-side WebControl. I don't understand what you're
trying to do here.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Tim B" <Tim B@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
Hi,

Previously I was loading my .NET Usercontrol like this :

<OBJECT id="Obj" classid="Viewer.dll#Viewer.Viewer" width=105 height=20
VIEWASTEXT><param name="DONOTHING" value="1">
</OBJECT>

Everything was working great until the new patch came out and changed the
way the ActiveX / Usercontrols are loaded.

I tried using the 'inner html' example located at :
http://msdn.microsoft.com/library/de...ng_activex.asp

But the example did not work for my user control. How can I load my
usercontrol and my parameter in a way that is functional with this latest
ie
update? Do I need to now specify a codebase ?

Here is what I tried :

<script language="JScript">
CreateControl( "EXAMPLE_DIV_ID",
"Viewer.dll#Viewer.Viewer",
"EXAMPLE_OBJECT_ID", "600", "400", "1",)
</script>

Supporting function :
// external_script.js
function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL,
AUTOSTART)
{
var d = document.getElementById(DivID);
d.innerHTML = '<object classid=' + CLSID + ' id=' + ObjectID + ' width='
+
WIDTH + ' height=' + HEIGHT +'><param name="URL" value=' + URL + '><param
name="autoStart" value=' + AUTOSTART + '/>';
}

I get a nice big red X.....


Apr 15 '06 #3
Hi Time,

I don't have the actual answer to your question, but I did find a good
resource where you should be able to find the answer:

http://msdn.microsoft.com/library/de...ec_activex.asp

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Tim B" <Ti**@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
Perhaps I used the wrong term, I am trying to host a Windows Form Contol
in
IE.
Here is an example of how it used to work before the patch :

http://www.15seconds.com/issue/030610.htm
"Kevin Spencer" wrote:
A UserControl is a server-side WebControl. I don't understand what you're
trying to do here.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Tim B" <Tim B@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
> Hi,
>
> Previously I was loading my .NET Usercontrol like this :
>
> <OBJECT id="Obj" classid="Viewer.dll#Viewer.Viewer" width=105 height=20
> VIEWASTEXT><param name="DONOTHING" value="1">
> </OBJECT>
>
> Everything was working great until the new patch came out and changed
> the
> way the ActiveX / Usercontrols are loaded.
>
> I tried using the 'inner html' example located at :
> http://msdn.microsoft.com/library/de...ng_activex.asp
>
> But the example did not work for my user control. How can I load my
> usercontrol and my parameter in a way that is functional with this
> latest
> ie
> update? Do I need to now specify a codebase ?
>
> Here is what I tried :
>
> <script language="JScript">
> CreateControl( "EXAMPLE_DIV_ID",
> "Viewer.dll#Viewer.Viewer",
> "EXAMPLE_OBJECT_ID", "600", "400", "1",)
> </script>
>
> Supporting function :
> // external_script.js
> function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL,
> AUTOSTART)
> {
> var d = document.getElementById(DivID);
> d.innerHTML = '<object classid=' + CLSID + ' id=' + ObjectID + '
> width='
> +
> WIDTH + ' height=' + HEIGHT +'><param name="URL" value=' + URL +
> '><param
> name="autoStart" value=' + AUTOSTART + '/>';
> }
>
> I get a nice big red X.....


Apr 15 '06 #4
I have a simliar situation. I was able load the user control
sucessfully even with the patch installed on the client machine. The
control wouldn't load once the patch was installed on the server
however.

Has anyone else ran into this problem?

May 2 '06 #5

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

Similar topics

2
by: Jigar Mehta | last post by:
Hye, What is the latest MSDN version in the market?? I have one of April 2003. From which location we can download latest samples?? (in ms website) -- Jigar Mehta jbmehtain@yahoo.co.in
3
by: marshal | last post by:
Hi to All, I am using <% @ OutputCache Duration="60" VaryByParam="none" %> in my usercontrol say "myControl.ascx". This user control has a property say "title". Now am Dynamically Loading...
1
by: Sundaresan | last post by:
I've a form where I load two user controls dynamically. User Control-1 has a no.of dropdowns and based on the selection I typically populate a datagrid in the user control-2, Also the I could...
2
by: Eric | last post by:
I'm trying to dynamically load a user control using on the .NET framework (not Visual Studio). The control was designed in Visual Studio and is named: Disable.ascx The first line is: <%@...
0
by: Phl | last post by:
Hi, I am trying to create an webform which loads usercontrols dyanamically. I know exactly what to load for some of these controls but for some, I dont want to load it until the user has press a...
9
by: Anders K. Jacobsen [DK] | last post by:
Hi I have this that adds some usercontrol (UCTodays.ascx) to a placeholder foreach(A a in B){ UCTodays ucline = (UCTodays )LoadControl("UCTodays.ascx");...
0
by: Mark | last post by:
I am converting a VB6/COM application to VB.NET and must remove all COM objects. VB6/COM App Architecture: Windows Form hosts WebBrowser which loads HTML snippets from local disk. Some of the...
1
by: TheScullster | last post by:
Hi all Bit of an obscure one this, but hopefully someone will be able to help. 4 years ago we had a potentially catastrophic problem with our Access database. From memory it was written in...
3
by: pearcewg | last post by:
All: I have a page with a form and fields on the form (checkboxes, grids, etc). This form contains a usercontrol which has a dynamic navigational menu of buttons. When a user clicks on one of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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...

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.