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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:39:18+00:00 2026-05-11T12:39:18+00:00

I am using .NET 3.5 and building pages inside of the Community Server 2008

  • 0

I am using .NET 3.5 and building pages inside of the Community Server 2008 framework.

On one of the pages, I am trying to get an UpdatePanel working.

I took a sample straight from ASP.NET website, update a time in an UpdatePanel to current time by clicking a button, but for some reason when I try and perform the function the whole page refreshes.

Here is what I have:

protected void Button1_Click(object sender, EventArgs e) {     Label1.Text = 'Panel refreshed at ' + DateTime.Now.ToString();     Label2.Text = 'Panel refreshed at ' + DateTime.Now.ToString(); } 
<asp:ScriptManager ID='ScriptManager1' runat='server'/>  <asp:UpdatePanel ID='UpdatePanel1' runat='server'>     <ContentTemplate>         <fieldset>             <legend>UpdatePanel</legend>             <asp:Label ID='Label1' runat='server' Text='Panel created.'></asp:Label><br />             <asp:Button ID='Button1' runat='server' OnClick='Button1_Click' Text='Button' />         </fieldset>     </ContentTemplate> </asp:UpdatePanel> 

Whenever I click the button, sure the panel updates – but the whole page posts back! I can see the whole page flashing. What the heck am I doing wrong?

I am inside of a nested Masterpage, but I’m not sure if this is a problem. Could there be something in this Community Server framework that I’m using that causes all events to postback?

  • 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. 2026-05-11T12:39:19+00:00Added an answer on May 11, 2026 at 12:39 pm

    Did you try setting Button1 as an AsyncPostBackTrigger in the Triggers section? Set the ChildrenAsTriggers property to true and the UpdateMode property to Conditional.

    protected void Button1_Click(object sender, EventArgs e) {         Label1.Text = 'Panel refreshed at ' + DateTime.Now.ToString();         UpdatePanel1.Update(); }     
    <asp:ScriptManager ID='ScriptManager1' runat='server'/> <asp:UpdatePanel ID='UpdatePanel1' runat='server' ChildrenAsTriggers='true' UpdateMode='Conditional'>     <Triggers>                 <asp:AsyncPostBackTrigger ControlID='Button1' EventName='Click' />         </Triggers>         <ContentTemplate>                 <fieldset>                         <legend>UpdatePanel</legend>                         <asp:Label ID='Label1' runat='server' Text='Panel created.'></asp:Label><br />                         <asp:Button ID='Button1' runat='server' OnClick='Button1_Click' Text='Button' />                 </fieldset>         </ContentTemplate> </asp:UpdatePanel> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a data model using ADO.NET Entity Framework 3.5 in Visual Studio 2008
Good day everyone, I am building a page in ASP.NET, and using Master Pages
I am building a form in Net framework 4.0 using linq to sql ,
I'm building pages with ASP.Net (Framework 4) and Microsoft Charts. Those charts require heavy
I am currently building an application using ASP.NET MVC. The data entry pages are
I'm trying to test a Presenter created using ASP.NET WebFormsMVP. I'm building it using
I am building a page using blocks of sections: http://jsfiddle.net/NrkTn/3/ You can see I
using a c# asp.net page, building a SQL query string to run against an
I recently started looking into building web applications using .NET MVC and I stumbled
We are building a site using asp.net mvc. We want to allow the user

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.