Sharing controls between sites

Last post 08-02-2007 2:38 PM by NC01. 17 replies.

Sort Posts:

  • Re: Sharing controls between sites - ASP.NET web control for Google AdSense

    02-22-2007, 7:09 AM

    Take a look to my free ASP.NET web controls for Google AdSense - http://AdSenseASP.NET/

    I've posted it to ASP.NET webcontrols gallery at http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=3692 but it has not been processed yet so not visible on gallery listing.

    The usefull feature of the library would be possibility to configure it from web.config so you don't need to setup AdSense publisher ID, AdSense channels, colors, etc. for every page and each AdSense block.

    There is a live demo on web site - http://AdSenseASP.NET/Sandbox/

     

  • Re: Sharing controls between sites - ASP.NET web control for Google AdSense

    08-02-2007, 1:31 AM
    • Member
      6 point Member
    • jaireth
    • Member since 06-07-2007, 3:41 PM
    • Posts 3

    I want to do the same thing or similar. Something everyone is missing here. If you are using Shared Hosting and one Web site is on server A and another site is on server B, using the dll solution you would have to copy the dll to both servers anyway. Unless you are saying that you can reference the dll with a remote path (http://), which you cannot do with the Register tag.

    I am also writing an application that would need a shared ascx file. I want to create the control once, and use it on all my sites from the same location.

    Only other solution I can see is an automatic updater program.

     

  • Re: Sharing controls between sites - ASP.NET web control for Google AdSense

    08-02-2007, 2:38 PM
    • All-Star
      77,451 point All-Star
    • NC01
    • Member since 08-26-2005, 3:33 PM
    • Posts 14,444
    • TrustedFriends-MVPs

    Sorry, but you cannot do that.

    User Controls work in ONE application.
    Custom Controls work from one dll. The dll could be installed in the GAC and accessed from all applications on a server, but I know of no way that one GAC will encompass more than one server.

    NC...

Page 2 of 2 (18 items) < Previous 1 2