Solved

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

Posted on 2008-06-13
3
244 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

19 Experts available now in Live!

Get 1:1 Help Now