473,396 Members | 1,945 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,396 software developers and data experts.

Share webusercontrols between asp.net projects

In VS2003 (framework 1.1 or less) i was shareing my webusercontrols
with this procedure:
I created a web project (webusercontrol_project) with the web user
control, i compiled and everything ok.
Then on other project (other_project), i include a reference to the
webusercontrol_project dll.
in other_proyect i created a virtual directory to
webusercontrol_project and i can use the web controls created on
webusercontrol_project in the project other_project, adding manually
them on some webform in other_proyect with this line:

<%@ Register TagPrefix="uc1" TagName="nav_br"
Src="sgl_share/nav_br.ascx"%>

<uc1:nav_br id="Nav_br1" runat="server"></uc1:nav_br>

A was triying to make the same on 2005 and i reaceive a lot of error

1.- When i convert webusercontrol_project from 2003 to 2005 no dll is
generated
2.- with no dll on webusercontrol_project i can not make the reference
on other_project
3.- Vs2005 giveme an error on the register:
<%@ Register TagPrefix="uc1" TagName="nav_br"
Src="sgl_share/nav_br.ascx"%>
The error said something like can't find the file
"sgl_share/sgl_br/nav_br.ascx"
And checking the virtual directory i can notice that everything is OK.

The really question is:

How can i share webusercontrols between diferents asp.net projects

Mar 1 '06 #1
2 1028
Hi,

here's a good blog post about the subject:
http://weblogs.asp.net/scottgu/archi...28/423888.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"jesusR" <jr*******@gmail.com> wrote in message
news:11********************@p10g2000cwp.googlegrou ps.com...
In VS2003 (framework 1.1 or less) i was shareing my webusercontrols
with this procedure:
I created a web project (webusercontrol_project) with the web user
control, i compiled and everything ok.
Then on other project (other_project), i include a reference to the
webusercontrol_project dll.
in other_proyect i created a virtual directory to
webusercontrol_project and i can use the web controls created on
webusercontrol_project in the project other_project, adding manually
them on some webform in other_proyect with this line:

<%@ Register TagPrefix="uc1" TagName="nav_br"
Src="sgl_share/nav_br.ascx"%>

<uc1:nav_br id="Nav_br1" runat="server"></uc1:nav_br>

A was triying to make the same on 2005 and i reaceive a lot of error

1.- When i convert webusercontrol_project from 2003 to 2005 no dll is
generated
2.- with no dll on webusercontrol_project i can not make the reference
on other_project
3.- Vs2005 giveme an error on the register:
<%@ Register TagPrefix="uc1" TagName="nav_br"
Src="sgl_share/nav_br.ascx"%>
The error said something like can't find the file
"sgl_share/sgl_br/nav_br.ascx"
And checking the virtual directory i can notice that everything is OK.

The really question is:

How can i share webusercontrols between diferents asp.net projects

Mar 1 '06 #2
Thanks a lot, it would help me a lot...

Mar 1 '06 #3

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

Similar topics

3
by: AARON PECORARO | last post by:
I need to split apart my web application into multiple projects to allow it to be distributed in parts, but all of the projects need to work together (ie. they need to share session information)....
2
by: Brad Wood | last post by:
Using VS2003, I can't add an existing class to a project w/o the IDE creating a copy of it. I want multiple projects to be able to share a central copy of a class. I can't compile the shared...
1
by: Macca | last post by:
Hi, I have a C# Solution/Application that contain 4 projects. Each of these projects needs at some time to access the same database. I would like to know how to share a single connection...
2
by: Craig Buchanan | last post by:
Is it possible to share webuser controls between asp.net projects? If so, what is the downside to doing this? Currently, I'm copying objects. I was hoping for a better way. Thanks, Craig...
0
by: arkam | last post by:
Hi, I am developping a web app which deals with our customers! This app will be used from many others throught an ASP.NET WebService. My problem is that each of them will have to build their...
2
by: tony | last post by:
hi. is there a way to write several webusercontrols in 1 file ? i want to write 3 diffrent webusercontrol for each table. but i want to see the code in 1 file. is it possible ?
1
by: Raed Sawalha | last post by:
I have a web application with 100 pages and 30 user controls so we decided to separate some pages and controls into sub projects ( the generated subprojects was 2) the problem we have that now the...
14
by: ToddLMorgan | last post by:
Summary: How should multiple (related) projects be arranged (structured) and configured so that the following is possible: o Sharing common code (one of the projects would be a "common" project...
1
by: GenCode | last post by:
I am trying to create a page with many of the same webusercontrols that I can have all my dynamically created and I want each of those webusercontrols to respong to one event on the page. How...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.