Solved

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

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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