473,385 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Add Windows Control Library Project into Asp.Net Web Project ?

Hi everyone,
I developed a Windows Control Library Project and build an assembly named
graph.dll.
I add this project into an ASP.NET Web Project using "Add existing project"
and then add a new aspx page named "Graph.aspx" and into html of this aspx
page write this code block :
<body>
<object id="UserControl1" classid="Graph.dll#Graph.UserControl1" width="940"
height="540">
</object>
</body>
i compile the project and run this page, Graph.aspx
but i cannot view the user control in IE.
i dont know what is the problem?
can anybody help me about this problem?
Aug 19 '05 #1
3 6805
I believe you need to include the virtue directory in "classid" attribute in
order for the client browser to download the control, unless the control has
been installed in GAC of client computer. That is:

<object id="UserControl1"
classid="http://servername/yourappdirectory/Graph.dll#Graph.UserControl1"...
..

"Engin H." <En****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi everyone,
I developed a Windows Control Library Project and build an assembly named
graph.dll.
I add this project into an ASP.NET Web Project using "Add existing project" and then add a new aspx page named "Graph.aspx" and into html of this aspx
page write this code block :
<body>
<object id="UserControl1" classid="Graph.dll#Graph.UserControl1" width="940" height="540">
</object>
</body>
i compile the project and run this page, Graph.aspx
but i cannot view the user control in IE.
i dont know what is the problem?
can anybody help me about this problem?

Aug 19 '05 #2
thanks norman
i apply and it solves my problem
:)

"Norman Yuan" wrote:
I believe you need to include the virtue directory in "classid" attribute in
order for the client browser to download the control, unless the control has
been installed in GAC of client computer. That is:

<object id="UserControl1"
classid="http://servername/yourappdirectory/Graph.dll#Graph.UserControl1"...
..

"Engin H." <En****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi everyone,
I developed a Windows Control Library Project and build an assembly named
graph.dll.
I add this project into an ASP.NET Web Project using "Add existing

project"
and then add a new aspx page named "Graph.aspx" and into html of this aspx
page write this code block :
<body>
<object id="UserControl1" classid="Graph.dll#Graph.UserControl1"

width="940"
height="540">
</object>
</body>
i compile the project and run this page, Graph.aspx
but i cannot view the user control in IE.
i dont know what is the problem?
can anybody help me about this problem?


Aug 19 '05 #3
i have another question about my project.
i need to pass parameters to Windows Control Library from aspx page that i
put my user control within <object> tag.
how can i do this?
i need help
thanks

"Engin H." wrote:
thanks norman
i apply and it solves my problem
:)

"Norman Yuan" wrote:
I believe you need to include the virtue directory in "classid" attribute in
order for the client browser to download the control, unless the control has
been installed in GAC of client computer. That is:

<object id="UserControl1"
classid="http://servername/yourappdirectory/Graph.dll#Graph.UserControl1"...
..

"Engin H." <En****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi everyone,
I developed a Windows Control Library Project and build an assembly named
graph.dll.
I add this project into an ASP.NET Web Project using "Add existing

project"
and then add a new aspx page named "Graph.aspx" and into html of this aspx
page write this code block :
<body>
<object id="UserControl1" classid="Graph.dll#Graph.UserControl1"

width="940"
height="540">
</object>
</body>
i compile the project and run this page, Graph.aspx
but i cannot view the user control in IE.
i dont know what is the problem?
can anybody help me about this problem?


Aug 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brett Gerhardi | last post by:
Hi all, I'm having a nightmare with Windows Installer projects and souce control. My situation is that I have a few related windows application / dlls, some generic shared library files and a...
4
by: rajendra | last post by:
how to extend existing windows forms control like if i want to add new add method to combo box ,how to go abt. it? can anyone help me abt. this
13
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that...
3
by: Engin H. | last post by:
Hi everyone, I developed a Windows Control Library Project and build an assembly named graph.dll. I add this project into an ASP.NET Web Project using "Add existing project" and then add a new...
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file. One project that build a class library dll One project that build a windows control dll In...
2
by: Iwan Budihalim | last post by:
Dear All, I try to create Windows Control Library and embedded it to my web project. after successfull creating the windows control library and put the control to my web all the control show...
2
by: Marek Pavlu | last post by:
Hi, I need develope control library, but can not find any examples on te internet or msdn. I can only generate project from template in VS2005, but in attempt to run after compilation, it do...
3
by: Richard Carpenter | last post by:
I have added a Windows Forms Control Library project to my solution and created a form control (let's call it libForm) in this new project which inherits from System.Windows.Forms.Form. I set the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.