Results 1 to 6 of 6

Thread: Sharing User Controls *RESOLVED*

  1. #1

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    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.

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    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
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  3. #3

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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.

  5. #5

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Thanks!

  6. #6
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    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
  •  



Click Here to Expand Forum to Full Width