471,338 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 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 6663
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Brett Gerhardi | last post: by
4 posts views Thread by rajendra | last post: by
13 posts views Thread by Lee Newson | last post: by
7 posts views Thread by Jarod_24 | last post: by
2 posts views Thread by Iwan Budihalim | last post: by
2 posts views Thread by Marek Pavlu | last post: by
3 posts views Thread by Richard Carpenter | last post: by
reply views Thread by rosydwin | last post: by

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.