|
-
Jan 6th, 2004, 12:54 AM
#1
Sharing User Controls *RESOLVED*
Can you share user controls between different sites/projects? If so how?
I have a traffic control that I made for one site that I would like to use in another without cut and paste. I tried adding it as a component be referencing the dll from the original site but it said there were no components in the assembly. I can reference it as a normal reference but then what do I drag over to put it on a web form?
Last edited by Edneeis; Jan 7th, 2004 at 12:13 PM.
-
Jan 6th, 2004, 09:42 AM
#2
Fanatic Member
i think all controls are private assemblies aren't they as when you add them to your project the .dll get's copied to that apps bin directory.
(i think that's what i read in my book anyway!)
Nick
-
Jan 6th, 2004, 11:00 AM
#3
I think so for the most part but the User Controls I'm talking about are the asxc ones that are part of the project. I guess its just not an option to share them unless you convert them to Web Custom Controls, bummer. It is indeed in the other project's dll which I referenced I just didn't find a way to effectively stick it on a page. I tried manually adding it but it didn't like the full namespace in the register part at the top.
-
Jan 6th, 2004, 01:17 PM
#4
PowerPoster
not an option to share them unless you convert them to Web Custom Controls
Just finished reading that section in a book. The statement I quoted is correct.
You can't use dll's across application boundies in IIS, (at least by default, I haven't found a way to over ride this behavior yet either).
The only way I know is to create a Web Custom Control, register it in the GAC, and add a reference to it.
-
Jan 7th, 2004, 04:53 AM
#5
-
Jan 10th, 2004, 09:45 PM
#6
PowerPoster
Edneeis,
If you want, I can convert it to a server control for ya.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|