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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:18:19+00:00 2026-06-12T04:18:19+00:00

I have a page where a user can update their user information (like their

  • 0

I have a page where a user can update their user information (like their first name). I also have a user control on this page that displays a lot of information, including the user’s first name.

My problem I’m having is that when I change the first name on this page, the user control isn’t updated after I save the data.

Here’s my front end:

<UC:LeftNav ID="leftNav" runat="server" />

<asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>

<asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />

My button click event to save the user info:

protected void btnSave_Click(object sender, EventArgs e)
{
    ...
    user.FirstName = txtFirstName.Text();
    user.Save();
    ...
}

My user control that displays the user info:

protected void Page_Load(object sender, EventArgs e)
{
    ...
    lblFirstName.Text = user.Firstname;
    ...
}

I went through the debugger, and I found that the btnSave_Click event on my page occurs after the Page_Load event of my user control.

Is there a way that I can get the btnSave_Click event to occur before I load the user data in my user control?

  • 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-12T04:18:20+00:00Added an answer on June 12, 2026 at 4:18 am

    No, there is no way to change when the event is raised. But you can put your user loading code into a Bind method and call it from your btnSave_Click method.

    In leftNav user control:

    public void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostback)
        {
            BindUserInfo();
        }
    }
    
    public void BindUserInfo()
    {
        //Binding code here
    }
    

    On page:

    public void btnSave_Click(object sender, EventArgs e)
    {
        //Do save work
        leftNav.BindUserInfo();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an account page where the user can view their account information.. I
I have a page with jquery tabs in which the user can update their
I have this PHP page where the user can select and un-select items. The
I have a form on a page that a user can use to create
I have a section on a page where a user can change their username.
I have a list of items on my web page that the user can
Say I have info.php page with user info (id, name, age, etc). On this
I have a form where the user enters their database information and can click
I have a page that the user can modify. All modifications are performed using
I have a page where a user can import data to the site. either

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.