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

  • Home
  • SEARCH
  • 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 405677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:25:20+00:00 2026-05-12T17:25:20+00:00

I am banging my head against the brick wall today. I am porting a

  • 0

I am banging my head against the brick wall today. I am porting a site I had developed on an old box across to a new dev env. I have not just copied all the files as I didn’t have a great file structure and some parts of the code needed to be removed as I went along.

Originally I had created a website (File -> New -> Web Site). I wanted a file structure something like:

Popular folder structure for build

So I created a new blank solution so the sln file was on its own, then added projects (various DLL projects) and am ASP.NET Web Application.

This last part seems to have caused me a few issues that have given me a headache. As far as I understand (this could be a little limited), a website (as I first had) is different to the later type I created. For example the App_Code folder part didn’t work as before. To solve that I created a separate DLL for the webLibrary cs files and added a reference to it.

My problem now is how I register this on a page to be able to use the controls in it. For example I have a control that inherits from TextBox, when it was in the App_Code folder I could use:

<%@ Register TagPrefix="sarg" Namespace="MyNameSpace" %> 

Then use

<sarg:SARGTextBox id="clienttitletxtbox" runat="server" OnTextChanged="textboxfiltering_TextChanged" AutoPostBack="true"></sarg:SARGTextBox>

Now it is in its own DLL and namespace I can not figure out how to get it to work, I just keep getting warnings saying "Cannot resolve symbol ‘SARGTextBox’".

It is probably really simple but I can no longer see the wood for the trees.

Thanks

  • 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-12T17:25:20+00:00Added an answer on May 12, 2026 at 5:25 pm

    I think you have created a WebApplication instead of Website. WebApplication does not support App_Code.

    1. Add your ClassLibrary as a reference.
    2. Then In web.config register your control.
        <pages>
            <controls>
                <add tagPrefix="myctl" namespace="Namespace.ClassName" assembly="AssemblyName"/>
            </controls>
        </pages>
    
    1. Rebuild your solution.
    2. Open the page and find your control from Toolbox and drop it on your page,
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been banging my head against a brick wall for nearly two days on
I've been banging my head against a brick-wall the past 2 days trying to
Banging my head against the wall today working with dates. I am looping through
banging my head against the wall for something seemingly dead simple. Here it is:
I've been banging my head against a wall with this one for a couple
I've been banging my head against the wall all night trying to figure out
I've been banging my head against the wall for awhile on this but here
I have been banging my head against the wall with this odd behaviour on
I've been banging my head against a wall on this one. I'm working on
I've been banging my head against the wall for a couple of days on

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.