Solved

How do I embed a win user control on a asp.net web page?

Posted on 2008-06-13
3
239 Views
Last Modified: 2013-11-26
I have built a win user control in visual studio 2003 using .net 1.1.  I can embed this control fine in other windows application, but I would like to embed it in asp.net web page.  The control is very simple it doesnt have any custom assemblies referenced, when I try embedding I just see a blank screen with a icon in the top corner that contains a small square, circle and triangle.  Am I missing something in my IE6 settings?  Here is how i am embedding

<OBJECT id="myControl1" name="myControl1" classid="Temp_User_Control.dll#MyControl.MyTest" width="288"
                                          height="72" >
                                    </OBJECT>
0
Comment
Question by:tentavarious
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Dustin Hopkins earned 125 total points
Comment Utility
try taking a look here:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=187

make sure your class id has the url to the control:
<OBJECT id="myControl1" name="myControl1" classid="hthttp://127.0.0.1/Temp_User_Control.dll#MyControl.MyTest" width="288"  height="72" ></OBJECT>
and that the control is not in you bin directory
also make sure that you arent using any system colors
0
 

Author Comment

by:tentavarious
Comment Utility
I am using a fully qualified url, so that is not the problem.  What color should I use?  Currently the background color was set to control.
0
 

Author Comment

by:tentavarious
Comment Utility
Ok, I used the visual studio compiler to compile the vb into a dll then I referenced that in my webpage and it worked.  So what I am doing different on the command line that I am not doing when using the IDE?  I ran this from the command line to manually compile the class:  vbc MyTest.vb /t:library /out:Temp_User_Control.dll /r:system.dll,system.windows.forms.dll,system.drawing.dll,microsoft.visualbasic.dll

So how do I compile it into a dll using the IDE?
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now