How to stop UpdatePanel from causing whole page postback?

前端 未结 6 649
温柔的废话
温柔的废话 2020-12-09 18:22

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

6条回答
  •  再見小時候
    2020-12-09 18:43

    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();
    }    
    
    
    
                
                
            
                
            
    UpdatePanel

提交回复
热议问题