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

The Archive Base Latest Questions

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

Ok, this is a strange one. I am using .net framework 4. I have

  • 0

Ok, this is a strange one.

I am using .net framework 4.
I have an asp.net button within an updatepanel, like this:

<asp:Button id="btNacinMontaze" runat="server" class="buttonOIHidden" value="nm" CausesValidation="false" onclick="btNacinMontaze_Clicked" clientidmode="Static" UseSubmitBehavior="false"/>

If I click on it within a browser it works correctly – updatepanel updates itself without refreshing the whole page, correct server events gets triggered.

if i do from within the page this:
document.getElementById("btNacinMontaze").click();

the whole page refreshes and the correct server event gets triggered.

If I issue the same line of code from within the firebug console, just the updatePanel refreshes.

If I load the same page in Chrome or IE9 it works ok in all cases.
I’ve tracked what is different between click by mouse and click by code by debugging in Firebug, and saw that in the Sys$WebForms$PageRequestManager$_doPostBack method the line

if (!this._postBackSettings.async)

is different. async is true on click by mouse, and false by code click.

I am out of ideas as to why this happens and any help is much appreciated.

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

    You should define an AsyncPostBackTrigger to stop the entire page refresh.

    <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
       <ContentTemplate>
         <asp:Label ID="label" runat="server"></asp:Label>
       </ContentTemplate>
       <Triggers>
         <asp:AsyncPostBackTrigger ControlID="btNacinMontaze" EventName="Click" />
       </Triggers>
     </asp:UpdatePanel>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the BlockUI JQuery plugin I find strange behaviour from within an ASP.Net page.
I have a strange issue with an Asp.NET MVC application. Using Asp.NET MVC 3
This one is strange...I have the following markup for a view using Razor view
I came across a strange error when using NGen from .NET Framework 4 to
I've currently go a very strange problem. I'm using an asp.net wizard to upload
OK this is an odd one. I wanted to install ASP.NET MVC 2 Beta
This is the question: Im using Lucene.Net, and Im importing like ~255k documents with
I have a strange problem in my ASP.Net 3.5 application. When multiple users try
I'm having a strange problem with new Entity Framework for .NET 4 I have
Strange one this, which isn't programming related directly, but I thought it important to

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.