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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:39:20+00:00 2026-06-13T23:39:20+00:00

I am working an Asp.net project, I am loading two user controls into another

  • 0

I am working an Asp.net project, I am loading two user controls into another ascx control. First, I am loading the control1.ascx and then the control2. After loading both of them inside control2.ascx I want to access a function that reloads some data of control1. I am doing it with the following code:

 private ASP.control1_ascx tree; 
 tree = (ASP.control1_ascx)LoadControl("control1.ascx");
 tree.aload();

When I debug the code, it seems that it calls the aload() function and updates the data. But the problem is that I cannot see them after the function is called, instead I can see the correct data after a postback event. Why is this happens?. Is there a solution to see them when I call the function ?

  • 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-06-13T23:39:21+00:00Added an answer on June 13, 2026 at 11:39 pm

    Have you tried creating a delegate event in each of your user controls and then use this to rebind the data?

    In your usercontrol:

    public delegate void RefreshRequired(object sender, any other params to pass to event method)
    
    public event OnRefreshRequired OnRefreshRequired;
    

    In your Page_Load of ASPX

    UserControl.OnRefreshRequired+= TAB TWICE;
    

    Implement code in this method to refresh the data in the user controls

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

Sidebar

Related Questions

We are working on an Asp.net project. It has two parts, first one is
First, I have two project working on: ASP.NET and Silverlight Both uses a class
Okay,...first the facts. I'm working on an ASP.Net project which validates it's users across
I'm working on my first ever ASP.Net project, and I seem to have been
I'm working with ASP.NET project where the user can upload files to the server.
While working on one ASP.NET project hosted within web farm including two front ends
We are working on a ASP.NET project and we are using the resx files
I'm working on an ASP.Net project to display information on a website from a
I'm working on an ASP.NET project for a school. In one area I want
I am working on an asp .net net project which calls a workflow service.

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.