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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:40:18+00:00 2026-06-16T17:40:18+00:00

I have a structure like this. UpdatePanel1 | | | CheckBoxes – in code

  • 0

I have a structure like this.

   UpdatePanel1
     |    |
     | CheckBoxes - in code behind CheckBoxCheckedHandel() method
     | 
     |---Usercontrol1
              |
            UpdatePanel2
                |
               Button1

Now here is the problem.

When I click Button1, it is causing UpdatePanel1 to refresh and calling CheckBoxCheckedHandel() method. So either I want a control name which caused postback or I want to refresh only UpdatePanel2 when Button1 clicked.

One more thing I would like to say is I am displaying Time on both update panel to see if they are refreshing when something happens. At this time button1 click event does not refresh UpdatePanel1 time but still it calls CheckBoxCheckedHandel() method.

I am stuck with this issue from last 2 days, please help.

Notes:
UpdatePanel1 – updatemode – Conditional and no triggres
UpdatePanel2 – updatemode – Conditional and asp:asyncTriggre for button1 click event

  • 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-16T17:40:19+00:00Added an answer on June 16, 2026 at 5:40 pm

    Here is how you can get the ID of a control that caused asynchronous postback. In your Page_Load handler put this code:

        if (ScriptManager.GetCurrent(Page).IsInAsyncPostBack)
        {
            string id = Utils.GetAsyncPostBackControlID(Page, Page.Request);
        }
    

    Following function gets the ID:

        public static string GetAsyncPostBackControlID(Page page, HttpRequest request)
        {
            string smUniqueId = ScriptManager.GetCurrent(page).UniqueID;
            string smFieldValue = request.Form[smUniqueId];
    
            if (!String.IsNullOrEmpty(smFieldValue) && smFieldValue.Contains('|'))
                return smFieldValue.Split('|')[1];
    
            return String.Empty;
        }
    

    ID of a control that caused postback is stored in a hiddenfield whose name is ID of a ScriptManager for the page. Value is stored in format: Script_Manager_ID|Control_ID

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

Sidebar

Related Questions

I have structure like this below. Now, I want swap 2 structures. public struct
I have a structure like this: /home /home/dir1 /home/dir2 Now when someone goes to
I have structure like this. <ul class=gallerylist> <li> <image ...> <input ...> </li> <li>
I have a structure like this struct structure { BaseObject &A; //BaseObject has a
I have a structure like this: var var1 = { array1 : ['value1','value2', ...],
I have a structure like this.... UITableViewController -> UITableViewCell -> UIView I need the
I have xml structure like this: <Group id=2 name=Third parentid=0 /> <Group id=6 name=Five
My table have data structure like this cate_id task_id date_start date_end other 34 14
The typical Python threadpool will have a structure like this one: def run(self): while
In an ASP.NET MVC3 project I have a structure like this: Core.csproj -> 3rdparty1.dll

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.