S
Stephajn Craig
I've been trying and trying to get a WinForms User Control to activate in
Internet Explorer, and just cannot seem to succeed at it.
I created a simple user control with a textbox on it that shows a message
box when it loads. Nothing too fancy right?
I followed the instructions in the Windows Forms tutorials about how to
activate a UserControl in IE, and all I get is a screen with the little icon
in the upper left corner of the User Control's area on the page. I wait and
wait, but it just does not work. I check my download cache, and I can see
that it has downloaded the UserControl's dll file off of my web server
successfully, so I know I am referring to the right location to get the file
from on my server.
I double checked the fully qualified path (namespace) of my DLL file and it
checks out.
In Visual Studio, on the project properties page, I even cleared the
namespace box and in the .VB file of my UserControl put in a Namespace line
that reads:
Namespace Steph.Controls.UserControls
and then I just have a class name of UserControl1.
So the fully qualified name of my UserControl would be
Steph.Controls.UserControls.UserControl1 right?
In my ASPX file, I have this as my instantiation code:
<object id="simpleControl1"
classid="http:SimpleControlLibrary.dll#Steph.Controls.UserControls.UserContr
ol1"
height="300"
width="300" VIEWASTEXT>
</object>
I don't know what I'm doing wrong, but I'd REALLY like for this to work.
any help would be greatly appreciated!
Stephajn
Internet Explorer, and just cannot seem to succeed at it.
I created a simple user control with a textbox on it that shows a message
box when it loads. Nothing too fancy right?
I followed the instructions in the Windows Forms tutorials about how to
activate a UserControl in IE, and all I get is a screen with the little icon
in the upper left corner of the User Control's area on the page. I wait and
wait, but it just does not work. I check my download cache, and I can see
that it has downloaded the UserControl's dll file off of my web server
successfully, so I know I am referring to the right location to get the file
from on my server.
I double checked the fully qualified path (namespace) of my DLL file and it
checks out.
In Visual Studio, on the project properties page, I even cleared the
namespace box and in the .VB file of my UserControl put in a Namespace line
that reads:
Namespace Steph.Controls.UserControls
and then I just have a class name of UserControl1.
So the fully qualified name of my UserControl would be
Steph.Controls.UserControls.UserControl1 right?
In my ASPX file, I have this as my instantiation code:
<object id="simpleControl1"
classid="http:SimpleControlLibrary.dll#Steph.Controls.UserControls.UserContr
ol1"
height="300"
width="300" VIEWASTEXT>
</object>
I don't know what I'm doing wrong, but I'd REALLY like for this to work.
any help would be greatly appreciated!
Stephajn