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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:35:25+00:00 2026-05-26T11:35:25+00:00

I have a user control (UserControl1.ascx) and I made changes to its .cs file.

  • 0

I have a user control (UserControl1.ascx) and I made changes to its .cs file.
That UserControl1.ascx is being used by two or more aspx files using LoadControl.

I don’t want to deploy the whole web project DLL, as this is a fix for a critical issue in one part of the web app, and doesn’t affect the whole web app.

Updating changes to the single web form code behind is easily done. However I’m not sure about the single user control deployment.

  • 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-26T11:35:26+00:00Added an answer on May 26, 2026 at 11:35 am

    It’s a bit of a hack, but you could move the code from the .ascx.cs file to the .ascx file and remove the inherits attribute. ASP.NET first checks the referenced class in the inherit attribute. So I think this should allow you to update the web application without updating the .dll files.

    I didn’t test this, but I think it could be a viable option.

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

Sidebar

Related Questions

I have made a web user control (.ascx) which consists of the two html
Background I have a User Control (an .ascx file) which is being dynamically inserting
I have an asp.net user control, userControl1.ascx, and another user control, userControl2.ascx. userControl2 is
I have a custom user control (ascx) that contains a textbox and a Javascript-based
i have a user control that descends from UserControl. When dropped onto the form
I have the following user control that is embedded within another user control. <UserControl.Resources>
I have created a web user control (MemberDetails.ascx) which is loaded dynamically on a
I have a simple asp.net user control: <%@ Control Language=C# AutoEventWireup=true CodeBehind=QueryDefinitionItem.ascx.cs Inherits=xxx.UserControls.QueryDefinitionItem %>
I got a web user control where I have controls that needs to be
I have a user control: <%@ Control Language=C# AutoEventWireup=true CodeBehind=Autocomplite.ascx.cs Inherits=Application.Controls.Autocomplite %> <script type=text/javascript

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.