Solved

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

Posted on 2008-06-13
3
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Dustin Hopkins earned 125 total points
ID: 21786915
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
ID: 21793134
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
ID: 21793540
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

617 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