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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:48:09+00:00 2026-05-28T07:48:09+00:00

I have a couple of update panels, one containing a gridview and another containing

  • 0

I have a couple of update panels, one containing a gridview and another containing a detailsview. I have not been able to get a button in the detailsview to be able to trigger an update of the gridview update panel. I have tried several things (doing it from c# would be ok too..) however here is what I have now… any suggestions? […I need “confirmButton” to trigger update in “SelectCarUP”]

<asp:UpdatePanel ID="SelectCarUP" runat="server">
  <ContentTemplate>
    <asp:GridView ID="VehiclesGridView" runat="server" AllowPaging="True" 
        AllowSorting="True" DataSourceID="VehiclesEDS" 
        AutoGenerateColumns="False" 
        onselectedindexchanged="VehiclesGridView_SelectedIndexChanged" 
        BackColor="White" BorderColor="#999999" 
        BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" GridLines="Vertical" ShowHeaderWhenEmpty="True">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
           <asp:TemplateField ShowHeader="False">
              <ItemTemplate>
                 <asp:LinkButton ID="GVSelectButton" runat="server" 
                     CausesValidation="False" 
                     CommandName="Select" Text="Select"></asp:LinkButton>
              </ItemTemplate>
           </asp:TemplateField>
           <asp:BoundField DataField="CarNum" HeaderText="Car" ReadOnly="True" 
               SortExpression="CarNum" />
           <asp:BoundField DataField="CurrPassengers" HeaderText="Passengers" 
               ReadOnly="True" SortExpression="CurrPassengers" />
           <asp:BoundField DataField="MaxPassengers" HeaderText="Capacity"  
               ReadOnly="True" SortExpression="MaxPassengers" />
           <asp:BoundField DataField="Status" HeaderText="Status" 
               ReadOnly="True" SortExpression="Status" />
           <asp:BoundField DataField="StartAdd" HeaderText="Pick-Up Address" 
               ReadOnly="True" SortExpression="StartAdd" />
           <asp:BoundField DataField="EndAdd" HeaderText="Drop-Off Address" 
               ReadOnly="True" SortExpression="EndAdd" />
           <asp:BoundField DataField="AvgRideTime" HeaderText="Avg. Ride Time" 
               ReadOnly="True" SortExpression="AvgRideTime" />
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#004812" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" 
           HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#C6940D" Font-Bold="True" 
           ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#C6940D" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#9F770B" />
     </asp:GridView>
  </ContentTemplate>
</asp:UpdatePanel>
<asp:Table ID="Table1" runat="server" CssClass="DefaultTable">
   <asp:TableRow runat="server">
       <asp:TableCell runat="server" Width="50%" 
           VerticalAlign="Top" HorizontalAlign="Left">
           <asp:UpdatePanel ID="detailsUP" runat="server" 
                UpdateMode="Always" ChildrenAsTriggers="True">
              <ContentTemplate>
                  <!--
                     <asp:Label ID="label1" runat="server" 
                        Text="Car To Dispatch: " CssClass="DefaultLabel">
                     </asp:Label>
                     <asp:DropDownList ID="CarsDDL" runat="server"
                        DataSourceID="VehiclesEDS" 
                        DataMember="CarNum" DataTextField="CarNum"
                        AppendDataBoundItems="True" Font-Bold="True">
                           <asp:ListItem Selected="True" Text="-">
                           </asp:ListItem>
                      </asp:DropDownList>
                  -->
                  <asp:DetailsView ID="RideToAssignDV" runat="server"
                      Height="400px" Width="400px" AutoGenerateRows="False"
                      BackColor="White" BorderColor="#999999" 
                      BorderStyle="None" BorderWidth="1px" 
                      CellPadding="3" GridLines="Vertical">
                        <AlternatingRowStyle BackColor="#DCDCDC" />
                        <EditRowStyle BackColor="#008A8C" Font-Bold="True"
                           ForeColor="White" />
                        <Fields>
                            <asp:BoundField DataField="AssignedCar" 
                                HeaderText="Car"             
                                SortExpression="AssignedCar" NullDisplayText="---" />            
                            <asp:BoundField DataField="Name" HeaderText="Name" 
                                SortExpression="Name" NullDisplayText="---" />
                            <asp:BoundField DataField="Phone" HeaderText="Phone" 
                                SortExpression="Phone" NullDisplayText="---" />
                            <asp:BoundField DataField="NumPatrons" HeaderText="Size" 
                                SortExpression="NumPatrons" NullDisplayText="---" />                
                            <asp:BoundField DataField="PickupAddress" 
                                HeaderText="Pickup Address" 
                                SortExpression="PickupAddress" NullDisplayText="---" />
                            <asp:BoundField DataField="DropoffAddress" 
                                HeaderText="Drop-Off Address" 
                                SortExpression="DropoffAddress" 
                                NullDisplayText="---" />
                            <asp:BoundField DataField="CreatedBy" 
                                HeaderText="Created By" 
                                SortExpression="CreatedBy" NullDisplayText="---" />
                            <asp:BoundField DataField="TimeOfCall" 
                                HeaderText="Call Time" 
                                SortExpression="TimeOfCall" ReadOnly="True"
                                NullDisplayText="---" />
                        </Fields>
                        <FooterStyle BackColor="#CCCCCC" ForeColor="Black"
                            BorderStyle="Inset" BorderColor="#C6940D"
                            HorizontalAlign="Center" Height="25px" />
                        <FooterTemplate>
                            <asp:Button ID="confirmButton" runat="server"
                                Text="Confirm" ForeColor="Green" 
                                HorizontalAlign="Center" OnClick="confirmButton_Click"
                                OnClientClick="refreshGV();"/>
                            <asp:Button ID="cancelButton" runat="server" Text="Cancel"
                                ForeColor="Red" HorizontalAlign="Center" 
                                OnClick="cancelButton_Click"
                                OnClientClick="displayTopTen();" />
                        </FooterTemplate>
                        <HeaderStyle BackColor="#004812" Font-Bold="True" />
                        <PagerStyle BackColor="#999999" ForeColor="Black" />
                        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />                            
                 </asp:DetailsView>
          </ContentTemplate>
     </asp:UpdatePanel>
</asp:TableCell>

<script type="text/javascript">
function refreshGV() {
             __doPostBack("<%= SelectCarUP.ClientID %>", "");
         }    
</script>
  • 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-28T07:48:09+00:00Added an answer on May 28, 2026 at 7:48 am

    Try doing

    ScriptManager.GetCurrent(this).RegisterAsyncPostBackControl(this.confirmButton);
    

    Refer this ASP.net forum

    OR

    On your button click event handler inside codebehind call SelectCarUP.Update() It should update the SelectCarUP panel. For more info refer article on MSDN.

    OR

    In code behind you can add trigger for this button (not sure about this)

    SelectCarUP.Triggers.Add(new AsyncPostBackTrigger()
    {
        ControlID = confirmButton.UniqueID,
        EventName = "Click"
    });
    

    Hope this works for you.

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

Sidebar

Related Questions

I have a couple of update panels inside a user control. One of the
I have couple of update panels and jquery tabs on page. And also I
I have a couple of tables (mySQL) that i would like to update with
Update: Based on a couple of the answers I have received, I just want
I have couple questions regarding some C++ rules. Why am I able to call
I have a couple questions concerning Update (U) locks and Exclusive (X) locks. 1)
I have a couple of tables where there are one to many relationships. Let's
I have a GridView with a few columns. One of the columns is a
I have a couple of identical files stored in more than one place on
I have couple of questions with update functionaliy using NHibernate I have Customer and

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.