Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4333070
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:20:35+00:00 2026-05-21T10:20:35+00:00

Is it possible to share web controls (.ASCX-files) between different web applications? The files

  • 0

Is it possible to share web controls (.ASCX-files) between different web applications?

The files in question are part of another web project. I tried to edit the web.config to reference the ascx files but I got syntax errors, it tells me that Iam not allowed to use “..” in this path.

<pages>
   <controls>
      <add tagPrefix="my" tagName="IntegerInput" src="~/../MyCommonProject/controls/basic/IntegerInput.ascx" />

The basic problem I want to solve with that is that we have two applications which have lots of functionality in common, exspecially web controls.

So in short, we want to pull out all common functionality of these two projects in a separate project so we have no duplicate code in development, but the two projects should be able to get deployed separately as completely different applications, each getting their own copy of these controls.

How can we solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:20:36+00:00Added an answer on May 21, 2026 at 10:20 am

    I found two solutions for this problem:

    • Create a project which contains ascx’es and code. The source files of this project are shared with (i.e. xcopies to) other projects using the ascx’es. (blog)

    • Create a library for your User Controls, add existing ascx’s and code-behind. Reference this library in the web projects. Drawback: You use design-time functionality, meaning: you don’t see the ascx in Design Mode. (blog)

    The third solution, as suggested by @Forgotten Semicolon, would be to convert to server controls. This method also improves designer performance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to share authentication and authorization between different web applications (asp.net application
Is it possible share authentication between Asp.NET web applications and silverlight business application? Scenario:
Is here a way to share System.Web.Caching between IIS applications? The simple goal is:
Is it possible to share references to C# objects between C# and C++ code
Let's share Java based web application architectures! There are lots of different architectures for
We have an ASP.Net ScriptControl that is shared between web app projects. One project
This question is a follow up to my question about sharing resources between web
Is it possible to share a Git repository in Windows network? If I add
In MS SQL is it possible to share an identity seed across tables? For
I have read in several places that it's possible to share the objects directory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.