Problem loading usercontrol since latest ie patch....

G

Guest

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/d.../author/dhtml/overview/activating_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.....
 
K

Kevin Spencer

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.
 
N

nyclove21

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top