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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:08:57+00:00 2026-05-23T11:08:57+00:00

I have a Web User Control on my web application ( .NET Framework 3.5

  • 0

I have a Web User Control on my web application (.NET Framework 3.5, C#) :

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Home.ascx.cs" Inherits="context_centro_Home" %>

<div class="main">
    Hello page
</div>

<%=strBuild %>

Now, the content of the string strBuild is not produced by Home.ascx.cs, but from Testo.ascx.cs; so I think I need to inject the Testo's Web User Control into Home.

Is it possible? How can I do it?

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

    This is pretty Ugly, but should work :

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Home.ascx.cs" Inherits="context_centro_Home" %>
    <uc1:Testo id="Testo1" runat="Server" Visible="false" />
    <div class="main">
        Hello page
    </div>
    <%=Testo1.strBuild %>
    

    Having suggested a fairly ugly solution, I would go further to say you may want to consider changing your architecture here – as I’m not 100% clear opn what you are trying to acheive I’m not quite sure what to suggest! But, at the end of the day, the content of the strBuild variable should probably be populated in a Third user Control that is then used in both Testo and Home user controls. e.g.:

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Home.ascx.cs" Inherits="context_centro_Home" %>
    
    <div class="main">
        Hello page
    </div>
    <uc1:strBuild id="strBuild1" runat="Server" />
    

    where strBuild Control looks like :

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="strBuild.ascx.cs" Inherits="context_centro_strBuild" %>
    <%=strBuild %>
    

    Make sense ?

    Anyway, hope that helps,
    Dave

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

Sidebar

Related Questions

I am using an ASP.Net Web Application project. I have a user control which
I have an ASP.Net web user control that contains a TextBox and a calendar
I have a web user control (ascx) in my project and I would like
I have a web application that utilizes the ReportViewer control in ASP.NET. The reports
We have an existing publicly accessible web application with user controls, data access libraries,
I have a web user control that contains several other (web user) controls and
I have a web user control with a dropdownlist inside of it. When the
I have an int array as a property of a Web User Control. I'd
Here's what i have : ASP.NET 4.0 Web Application Forms Authentication (Cookie Based) Here's
I have two folders in my asp.net web application in which I create new

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.