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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:04:06+00:00 2026-05-21T11:04:06+00:00

I have a legacy ASP.NET site I’d like to improve a bit. One area

  • 0

I have a “legacy” ASP.NET site I’d like to improve a bit. One area I’d like to do something about is page updates – for now, it’s always full page updates, but I’d like to start using partial updates.

I was hoping to be able to use the ASP.NET UpdatePanel for this – but I’m a bit stuck on how to get this to work for me.

I have a master page which defines several content placeholders – simplified it looks like this:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Default.master.cs" Inherits="WebForms_Default" %>
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>MyTitle</title>
</head>
<body>
   <form id="myForm" runat="server">
      <asp:ScriptManager ID="smgrMaster" runat="server" LoadScriptsBeforeUI="true">
         <Scripts>
            <asp:ScriptReference Path="~/Scripts/jquery-1.4.2.min.js" />
         </Scripts>
      </asp:ScriptManager>
      <asp:ContentPlaceHolder runat="server" ID="cphSearch" />
      <asp:ContentPlaceHolder runat="server" ID="cphContent" />
   </form>
</body>
</html>

On my content page, my grid is showing the data inside the cphContent area – and in my cphSearch area I have a number of input controls – a RadioButtonList and two DropDowns. Whenever something in those controls changes, for now, a postback is issued (they have AutoPostback="true" set).

My problem is: how do I tell my UpdatePanel (which I’m trying to wrap around my grid in the cphContent area) to “listen” for postbacks from those three controls from cphSearch ?

<asp:UpdatePanel>
   <ContentTemplate>
      <asp:GridView>
         // grid view defined here
      </asp:GridView>
   </ContentTemplate>
   <Triggers>
      <asp:AsyncPostBackTrigger ControlID=".. what values to put here?? .." />
      <asp:PostBackTrigger ControlID=".. - what values to put here?? .." />
   </Triggers>

When I add my <asp:UpdatePanel>, I get a section <Triggers>, but those controls in the cphSearch content area aren’t visible, so I guess I can’t really add them as update triggers, correct?

Either I’m totally not getting it (absolutely possible!), or I’m missing an obvious step / trick to get this to work – or it’s just not possible. Let me know!

  • 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-05-21T11:04:07+00:00Added an answer on May 21, 2026 at 11:04 am

    i think its not necessary to put Triggers all the time when you are not able to find control for Triggers some event just use updatepanel without triggers

    <asp:Content ID="Content1" ContentPlaceHolderID="cphSearch" runat="Server">
      <asp:UpdatePanel ID="updateSearch" runat="server">
        <ContentTemplate>
           your searching controls
        </ContentTemplate>
      </asp:UpdatePanel>
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="Server">
      <asp:UpdatePanel ID="updateContent" runat="server">
        <ContentTemplate>
            your grid
        </ContentTemplate>
      </asp:UpdatePanel>
    </asp:Content>
    

    this will update whole grids, search controls and it will also handles AutoPostBack event but dnt forget to put Update <asp:UpdateProgress> control to see work is in process…

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

Sidebar

Related Questions

We have a legacy ASP.NET web site (not web application, so I can freely
I have legacy ASP.NET web site, upgraded from ASP.NET 2.0 to ASP.NET 4.0 target
We have a legacy ASP.NET site which uses the encryption methods here: http://www.codekeep.net/snippets/af1cd375-059a-4175-93d7-25eea2c5c660.aspx When
At my current client we have some legacy ASP.Net web site projects. I am
We have a legacy ASP.net powered site running on a IIS server, the site
I have a legacy (haha) ASP.Net Webforms Web Site Project in Visual Studio 2008
We have some legacy ASP.NET code that detects if a request is secure, and
I've been dealing with a legacy asp.net 2.0 web site that was originally setup
I have legacy asp.net 1.1 website. It has a very poor VB layered achitecture.
Currently I have some legacy ASP.NET 2.0 code that uses the ASP Xml web

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.