Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

772 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