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

Home Posts Topics Members FAQ

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

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 1472
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jigar Mehta | last post: by
3 posts views Thread by marshal | last post: by
1 post views Thread by Sundaresan | last post: by
2 posts views Thread by Eric | last post: by
reply views Thread by Phl | last post: by
9 posts views Thread by Anders K. Jacobsen [DK] | last post: by
3 posts views Thread by pearcewg | 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.