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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:07:04+00:00 2026-05-17T01:07:04+00:00

Maybe I’m having a brain fart or something because it seems like this should

  • 0

Maybe I’m having a brain fart or something because it seems like this should be pretty simple but how do you update a User Control from another User Control via Ajax?

I have an ASPX page with two user controls and when I trigger a server-side event on one, I want to refresh a grid on the other so it’ll update it’s data.

I’m using Telerik controls if that helps. Checkbox event on the first User Control causes the RadGrid in the second User Control to Rebind() and I have RadAjaxManager in the ASPX page and RadAjaxManagerProxy in the two User Controls.

  • 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-17T01:07:04+00:00Added an answer on May 17, 2026 at 1:07 am

    First for me Page.DataBind() doesn’t work for me.

    I declared in UserControl

    // Declare a delegate
    public delegate void save_CommandEventHandler ();
    
    //Event
    save_CommandEventHandler SaveViewChanged public event;
    
    // I run SaveViewChanged() from a click_button but it can run from anywhere
    protected void save_Click (object sender, EventArgs e)
    {
        UpdateDataInDatabase();
    
        SaveViewChanged ();
    }
    

    In page.aspx.cs code

    protected override void OnInit (EventArgs e)
    {
        base.OnInit (e);
    
        // UserControle1 is the Id of your UserControl declared in Aspx Page
        UserControle1.SaveViewChanged + =
           New UserControle.save_CommandEventHandler
           (Save_CommandEventHandler);
    }
    
    private void save_CommandEventHandler () {
        // Reload the gridView gvExpence to see the change operated in the user control
        gvExpence.DataSource =DataAcces.getAllCompanyExpence ();
        gvExpence.DataBind ();
    
        // update user control 2
        usercontrol2.updateView();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.