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 776235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:24:58+00:00 2026-05-14T19:24:58+00:00

Is it possible to compile some code-behind (.cs) files (eg. all .cs file under

  • 0

Is it possible to compile some code-behind (.cs) files (eg. all .cs file under a particular folder) into one DLL, and the rest into another DLL?

We have some common codes and pages (aspx + cs files) that we want to use across many websites. We want this to compile into a DLL (eg. Common.dll).

The rest of the files will be website-specific, unique to each website and should compile into another DLL (eg. Website3.dll)

This is so that if we make changes to a common code-behind, we can just publish Common.dll onto all our websites.

Is that possible using VS Web Developer Express 2008?

Thanks in advance.

EDIT: We are already using a class library, but not for pages (aspx+cs)

  • 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-14T19:24:59+00:00Added an answer on May 14, 2026 at 7:24 pm

    Put simply, you need your common code in a separate project – a Class Library – and to then add a reference to that assembly to each of your web sites. You can either reference the assembly directly or you can (I think in Web Express) add the project to your solution and build the site and the common code together. I much prefer the latter but there are good arguments for both systems.

    This is fairly fundamental to the way one builds .NET applications (-: You’re going to need to understand namespaces and using/imports (depending on you language of choice).

    Unfortunately I don’t remember the mechanics of doing either with Express (if someone does could they edit or comment as appropriate).

    As an aside, you’ll need to think about how you integrate this into your version control system – details, to a certain extent, will depend on whether you reference a separately built .dll or include the project. If you don’t have version control in place then stop, go sort that out first, and then come back and address this.

    As a further aside, I think – though I’m happy to be corrected, that code-behind refers to code directly associated with a web form rather than to classes separate and distinct from those pages.

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

Sidebar

Ask A Question

Stats

  • Questions 418k
  • Answers 418k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You're describing the behavior of TCP connections on an unreliable… May 15, 2026 at 9:52 am
  • Editorial Team
    Editorial Team added an answer Since UITextView does not support intercepting taps on links, you… May 15, 2026 at 9:52 am
  • Editorial Team
    Editorial Team added an answer You are doing more work on the server and the… May 15, 2026 at 9:52 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.